Spawns a managed-server child with the supplied configuration and returns a discriminated-union result. The caller (typically the CLI controller) is responsible for attaching to the spawned child and sending any follow-up prompt. When the controller-local spawn gate is closed the server returns JSON
(self, params: AgentRegistrySpawnRequest, *, timeout: float | None = None)
| 25518 | self._client = client |
| 25519 | |
| 25520 | async def spawn(self, params: AgentRegistrySpawnRequest, *, timeout: float | None = None) -> AgentRegistrySpawnResult: |
| 25521 | "Spawns a managed-server child with the supplied configuration and returns a discriminated-union result. The caller (typically the CLI controller) is responsible for attaching to the spawned child and sending any follow-up prompt. When the controller-local spawn gate is closed the server returns JSON-RPC MethodNotFound.\n\nArgs:\n params: Inputs to spawn a managed-server child via the controller's spawn delegate.\n\nReturns:\n Outcome of an agentRegistry.spawn call." |
| 25522 | params_dict = {k: v for k, v in params.to_dict().items() if v is not None} |
| 25523 | return _load_AgentRegistrySpawnResult(await self._client.request("agentRegistry.spawn", params_dict, **_timeout_kwargs(timeout))) |
| 25524 | |
| 25525 | |
| 25526 | class ServerRpc: |