Create all DeepCode tools with the given API URL. Usage in AgentLoop._register_default_tools(): deepcode_url = os.environ.get("DEEPCODE_API_URL") if deepcode_url: from nanobot.agent.tools.deepcode import create_all_tools for tool in create_all_tools(
(api_url: str | None = None)
| 475 | |
| 476 | |
| 477 | def create_all_tools(api_url: str | None = None) -> list[Tool]: |
| 478 | """ |
| 479 | Create all DeepCode tools with the given API URL. |
| 480 | |
| 481 | Usage in AgentLoop._register_default_tools(): |
| 482 | deepcode_url = os.environ.get("DEEPCODE_API_URL") |
| 483 | if deepcode_url: |
| 484 | from nanobot.agent.tools.deepcode import create_all_tools |
| 485 | for tool in create_all_tools(api_url=deepcode_url): |
| 486 | self.tools.register(tool) |
| 487 | """ |
| 488 | url = api_url or _get_deepcode_url() |
| 489 | return [ |
| 490 | DeepCodePaper2CodeTool(api_url=url), |
| 491 | DeepCodeChat2CodeTool(api_url=url), |
| 492 | DeepCodeStatusTool(api_url=url), |
| 493 | DeepCodeListTasksTool(api_url=url), |
| 494 | DeepCodeCancelTool(api_url=url), |
| 495 | DeepCodeRespondTool(api_url=url), |
| 496 | ] |
no test coverage detected