MCPcopy Index your code
hub / github.com/github/copilot-sdk / spawn

Method spawn

python/copilot/generated/rpc.py:25520–25523  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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
25526class ServerRpc:

Calls 4

_timeout_kwargsFunction · 0.85
to_dictMethod · 0.45
requestMethod · 0.45