(
cls, config: ToolArgsConfig, config_abs_path: str
)
| 310 | @override |
| 311 | @classmethod |
| 312 | def from_config( |
| 313 | cls, config: ToolArgsConfig, config_abs_path: str |
| 314 | ) -> AgentTool: |
| 315 | from ..agents import config_agent_utils |
| 316 | |
| 317 | agent_tool_config = AgentToolConfig.model_validate(config.model_dump()) |
| 318 | |
| 319 | agent = config_agent_utils.resolve_agent_reference( |
| 320 | agent_tool_config.agent, config_abs_path |
| 321 | ) |
| 322 | return cls( |
| 323 | agent=agent, |
| 324 | skip_summarization=agent_tool_config.skip_summarization, |
| 325 | include_plugins=agent_tool_config.include_plugins, |
| 326 | ) |
| 327 | |
| 328 | |
| 329 | class AgentToolConfig(BaseToolConfig): |
nothing calls this directly
no test coverage detected