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

Function _load_AgentRegistrySpawnResult

python/copilot/generated/rpc.py:24790–24798  ·  view source on GitHub ↗
(obj: Any)

Source from the content-addressed store, hash-verified

24788AgentRegistrySpawnResult = AgentRegistrySpawnSpawned | AgentRegistrySpawnError | AgentRegistrySpawnRegistryTimeout | AgentRegistrySpawnValidationError
24789
24790def _load_AgentRegistrySpawnResult(obj: Any) -> "AgentRegistrySpawnResult":
24791 assert isinstance(obj, dict)
24792 kind = obj.get("kind")
24793 match kind:
24794 case "spawned": return AgentRegistrySpawnSpawned.from_dict(obj)
24795 case "spawn-error": return AgentRegistrySpawnError.from_dict(obj)
24796 case "registry-timeout": return AgentRegistrySpawnRegistryTimeout.from_dict(obj)
24797 case "validation-error": return AgentRegistrySpawnValidationError.from_dict(obj)
24798 case _: raise ValueError(f"Unknown AgentRegistrySpawnResult kind: {kind!r}")
24799
24800# Initial authentication info for the session.
24801AuthInfo = HMACAuthInfo | EnvAuthInfo | TokenAuthInfo | CopilotAPITokenAuthInfo | UserAuthInfo | GhCLIAuthInfo | APIKeyAuthInfo

Callers 2

from_dictMethod · 0.85
spawnMethod · 0.85

Calls 2

getMethod · 0.45
from_dictMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…