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

Method to_dict

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

Source from the content-addressed store, hash-verified

611 )
612
613 def to_dict(self) -> dict:
614 result: dict = {}
615 if self.max_prompt_tokens is not None:
616 result["max_prompt_tokens"] = self.max_prompt_tokens
617 if self.max_context_window_tokens is not None:
618 result["max_context_window_tokens"] = self.max_context_window_tokens
619 if self.vision is not None:
620 result["vision"] = self.vision.to_dict()
621 return result
622
623
624@dataclass

Callers

nothing calls this directly

Calls 1

to_dictMethod · 0.45

Tested by

no test coverage detected