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

Method to_dict

python/copilot/generated/rpc.py:1521–1529  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1519 return CurrentModel(context_tier, model_id, reasoning_effort)
1520
1521 def to_dict(self) -> dict:
1522 result: dict = {}
1523 if self.context_tier is not None:
1524 result["contextTier"] = from_union([lambda x: to_enum(ContextTier, x), from_none], self.context_tier)
1525 if self.model_id is not None:
1526 result["modelId"] = from_union([from_str, from_none], self.model_id)
1527 if self.reasoning_effort is not None:
1528 result["reasoningEffort"] = from_union([from_str, from_none], self.reasoning_effort)
1529 return result
1530
1531# Experimental: this type is part of an experimental API and may change or be removed.
1532class DiscoveredMCPServerType(Enum):

Callers

nothing calls this directly

Calls 2

from_unionFunction · 0.70
to_enumFunction · 0.70

Tested by

no test coverage detected