Spaces:
Sleeping
Sleeping
Download src/agents/planner.py from Cheng-1/CodeAgent-MCP: direct link, hf CLI and curl.
- Browser
- Download file 417 Bytes
-
https://huggingface.co/spaces/Cheng-1/CodeAgent-MCP/resolve/main/src/agents/planner.py
- Command line
-
hf download hf://spaces/Cheng-1/CodeAgent-MCP/src/agents/planner.py
-
curl -L -o planner.py https://huggingface.co/spaces/Cheng-1/CodeAgent-MCP/resolve/main/src/agents/planner.py
417 Bytes
| from ..core.agent_base import AgentBase | |
| from ..core.llm_client import LLMClient | |
| class PlannerAgent(AgentBase): | |
| def __init__(self, config: dict, llm_client: LLMClient): | |
| super().__init__(config, llm_client, mcp_manager=None) | |
| def format_input(self, task) -> str: | |
| if isinstance(task, str): | |
| return task | |
| return f"请分析以下开发需求并拆解为子任务:\n\n{task}" | |