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

Class ModeSetRequest

python/copilot/generated/rpc.py:3743–3758  ·  view source on GitHub ↗

Agent interaction mode to apply to the session.

Source from the content-addressed store, hash-verified

3741# Experimental: this type is part of an experimental API and may change or be removed.
3742@dataclass
3743class ModeSetRequest:
3744 """Agent interaction mode to apply to the session."""
3745
3746 mode: SessionMode
3747 """The session mode the agent is operating in"""
3748
3749 @staticmethod
3750 def from_dict(obj: Any) -> 'ModeSetRequest':
3751 assert isinstance(obj, dict)
3752 mode = SessionMode(obj.get("mode"))
3753 return ModeSetRequest(mode)
3754
3755 def to_dict(self) -> dict:
3756 result: dict = {}
3757 result["mode"] = to_enum(SessionMode, self.mode)
3758 return result
3759
3760# Experimental: this type is part of an experimental API and may change or be removed.
3761@dataclass

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…