MCPcopy Create free account
hub / github.com/SkyworkAI/DeepResearchAgent / get

Method get

src/agent/context.py:526–538  ·  view source on GitHub ↗

Get agent configuration by name Args: agent_name: Agent name Returns: Agent: Agent instance or None if not found

(self, agent_name: str)

Source from the content-addressed store, hash-verified

524 raise
525
526 async def get(self, agent_name: str) -> Optional[Agent]:
527 """Get agent configuration by name
528
529 Args:
530 agent_name: Agent name
531
532 Returns:
533 Agent: Agent instance or None if not found
534 """
535 agent_config = self._agent_configs.get(agent_name)
536 if agent_config is None:
537 return None
538 return agent_config.instance if agent_config.instance is not None else None
539
540 async def get_info(self, agent_name: str) -> Optional[AgentConfig]:
541 """Get agent info by name

Callers 10

register_agent_classMethod · 0.45
_load_from_codeMethod · 0.45
registerMethod · 0.45
get_infoMethod · 0.45
updateMethod · 0.45
copyMethod · 0.45
load_from_jsonMethod · 0.45
restoreMethod · 0.45
retrieveMethod · 0.45
set_variablesMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected