code_generator_agent.py 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. """
  2. 帮助生成高质量的代码,包括函数、类、模块和完整项目。支持多种编程语言,遵循最佳实践和设计模式。适用于快速开发、代码示例生成或教学演示。 for Qoder
  3. This agent module was automatically generated from Agent Skill.
  4. """
  5. class CodeGeneratorAgent:
  6. """
  7. Agent for 帮助生成高质量的代码,包括函数、类、模块和完整项目。支持多种编程语言,遵循最佳实践和设计模式。适用于快速开发、代码示例生成或教学演示。
  8. """
  9. def __init__(self):
  10. self.name = "code-generator"
  11. self.description = "帮助生成高质量的代码,包括函数、类、模块和完整项目。支持多种编程语言,遵循最佳实践和设计模式。适用于快速开发、代码示例生成或教学演示。"
  12. def execute(self, task, context=None):
  13. """
  14. Execute the agent task
  15. Args:
  16. task: Task description or parameters
  17. context: Optional context information
  18. Returns:
  19. Task execution result
  20. """
  21. # Read instructions from SKILL.md
  22. # Execute skill workflow
  23. # Return result
  24. pass
  25. def get_capabilities(self):
  26. """Get agent capabilities"""
  27. return {
  28. "name": self.name,
  29. "description": self.description,
  30. "capabilities": ["task-execution"]
  31. }