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

Method to_dict

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

Source from the content-addressed store, hash-verified

666 return CanvasAction(name, description, input_schema)
667
668 def to_dict(self) -> dict:
669 result: dict = {}
670 result["name"] = from_str(self.name)
671 if self.description is not None:
672 result["description"] = from_union([from_str, from_none], self.description)
673 if self.input_schema is not None:
674 result["inputSchema"] = self.input_schema
675 return result
676
677# Experimental: this type is part of an experimental API and may change or be removed.
678@dataclass

Calls 2

from_strFunction · 0.70
from_unionFunction · 0.70