MCPcopy Create free account
hub / github.com/github/copilot-sdk / CanvasProviderOpenResult

Class CanvasProviderOpenResult

python/copilot/generated/rpc.py:844–872  ·  view source on GitHub ↗

Canvas open result returned by the provider.

Source from the content-addressed store, hash-verified

842# Experimental: this type is part of an experimental API and may change or be removed.
843@dataclass
844class CanvasProviderOpenResult:
845 """Canvas open result returned by the provider."""
846
847 status: str | None = None
848 """Provider-supplied status text"""
849
850 title: str | None = None
851 """Provider-supplied title"""
852
853 url: str | None = None
854 """URL for web-rendered canvases"""
855
856 @staticmethod
857 def from_dict(obj: Any) -> 'CanvasProviderOpenResult':
858 assert isinstance(obj, dict)
859 status = from_union([from_str, from_none], obj.get("status"))
860 title = from_union([from_str, from_none], obj.get("title"))
861 url = from_union([from_str, from_none], obj.get("url"))
862 return CanvasProviderOpenResult(status, title, url)
863
864 def to_dict(self) -> dict:
865 result: dict = {}
866 if self.status is not None:
867 result["status"] = from_union([from_str, from_none], self.status)
868 if self.title is not None:
869 result["title"] = from_union([from_str, from_none], self.title)
870 if self.url is not None:
871 result["url"] = from_union([from_str, from_none], self.url)
872 return result
873
874# Experimental: this type is part of an experimental API and may change or be removed.
875@dataclass

Callers 5

on_openMethod · 0.90
on_openMethod · 0.90
on_openMethod · 0.90
from_dictMethod · 0.70

Calls

no outgoing calls

Tested by 4

on_openMethod · 0.72
on_openMethod · 0.72
on_openMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…