MCPcopy Index your code
hub / github.com/google/adk-python / from_config

Method from_config

src/google/adk/tools/agent_tool.py:312–326  ·  view source on GitHub ↗
(
      cls, config: ToolArgsConfig, config_abs_path: str
  )

Source from the content-addressed store, hash-verified

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
329class AgentToolConfig(BaseToolConfig):

Callers

nothing calls this directly

Calls 2

model_validateMethod · 0.80
model_dumpMethod · 0.45

Tested by

no test coverage detected