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)
| 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, |
no outgoing calls
no test coverage detected