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

Method update

src/agent/server.py:132–152  ·  view source on GitHub ↗

Update an existing agent with new configuration and create a new version Args: agent_cls: New agent class with updated implementation agent_config_dict: Configuration dict for agent initialization new_version: New version string. If None, auto-inc

(self, 
                     agent_cls: Type[Agent],
                     agent_config_dict: Optional[Dict[str, Any]] = None,
                     new_version: Optional[str] = None, 
                     description: Optional[str] = None)

Source from the content-addressed store, hash-verified

130 self._registered_configs.clear()
131
132 async def update(self,
133 agent_cls: Type[Agent],
134 agent_config_dict: Optional[Dict[str, Any]] = None,
135 new_version: Optional[str] = None,
136 description: Optional[str] = None) -> AgentConfig:
137 """Update an existing agent with new configuration and create a new version
138
139 Args:
140 agent_cls: New agent class with updated implementation
141 agent_config_dict: Configuration dict for agent initialization
142 new_version: New version string. If None, auto-increments from current version.
143 description: Description for this version update
144
145 Returns:
146 AgentConfig: Updated agent configuration
147 """
148 agent_config = await self.agent_context_manager.update(
149 agent_cls, agent_config_dict=agent_config_dict, new_version=new_version, description=description
150 )
151 self._registered_configs[agent_config.name] = agent_config
152 return agent_config
153
154 async def copy(self,
155 agent_name: str,

Callers 15

_think_and_toolMethod · 0.45
_think_and_toolMethod · 0.45
_get_messagesMethod · 0.45
_think_and_actionMethod · 0.45
_get_messagesMethod · 0.45
_get_messagesMethod · 0.45
_get_messagesMethod · 0.45
_think_and_actionMethod · 0.45
_get_messagesMethod · 0.45
_get_messagesMethod · 0.45
_think_and_toolMethod · 0.45
_get_messagesMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected