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

Method to_dict

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

Source from the content-addressed store, hash-verified

8076 return Skill(description, enabled, name, source, user_invocable, argument_hint, path, plugin_name)
8077
8078 def to_dict(self) -> dict:
8079 result: dict = {}
8080 result["description"] = from_str(self.description)
8081 result["enabled"] = from_bool(self.enabled)
8082 result["name"] = from_str(self.name)
8083 result["source"] = to_enum(SkillSource, self.source)
8084 result["userInvocable"] = from_bool(self.user_invocable)
8085 if self.argument_hint is not None:
8086 result["argumentHint"] = from_union([from_str, from_none], self.argument_hint)
8087 if self.path is not None:
8088 result["path"] = from_union([from_str, from_none], self.path)
8089 if self.plugin_name is not None:
8090 result["pluginName"] = from_union([from_str, from_none], self.plugin_name)
8091 return result
8092
8093# Experimental: this type is part of an experimental API and may change or be removed.
8094class SkillDiscoveryScope(Enum):

Callers

nothing calls this directly

Calls 4

from_strFunction · 0.70
from_boolFunction · 0.70
to_enumFunction · 0.70
from_unionFunction · 0.70

Tested by

no test coverage detected