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

Method to_dict

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

Source from the content-addressed store, hash-verified

6356 return ServerSkill(description, enabled, name, source, user_invocable, argument_hint, path, project_path)
6357
6358 def to_dict(self) -> dict:
6359 result: dict = {}
6360 result["description"] = from_str(self.description)
6361 result["enabled"] = from_bool(self.enabled)
6362 result["name"] = from_str(self.name)
6363 result["source"] = to_enum(SkillSource, self.source)
6364 result["userInvocable"] = from_bool(self.user_invocable)
6365 if self.argument_hint is not None:
6366 result["argumentHint"] = from_union([from_str, from_none], self.argument_hint)
6367 if self.path is not None:
6368 result["path"] = from_union([from_str, from_none], self.path)
6369 if self.project_path is not None:
6370 result["projectPath"] = from_union([from_str, from_none], self.project_path)
6371 return result
6372
6373# Experimental: this type is part of an experimental API and may change or be removed.
6374@dataclass

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