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

Method to_dict

python/copilot/client.py:762–775  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

760 )
761
762 def to_dict(self) -> dict:
763 result: dict = {}
764 result["id"] = self.id
765 result["name"] = self.name
766 result["capabilities"] = self.capabilities.to_dict()
767 if self.policy is not None:
768 result["policy"] = self.policy.to_dict()
769 if self.billing is not None:
770 result["billing"] = self.billing.to_dict()
771 if self.supported_reasoning_efforts is not None:
772 result["supportedReasoningEfforts"] = self.supported_reasoning_efforts
773 if self.default_reasoning_effort is not None:
774 result["defaultReasoningEffort"] = self.default_reasoning_effort
775 return result
776
777
778# ============================================================================

Callers

nothing calls this directly

Calls 1

to_dictMethod · 0.45

Tested by

no test coverage detected