Agent interaction mode to apply to the session.
| 3741 | # Experimental: this type is part of an experimental API and may change or be removed. |
| 3742 | @dataclass |
| 3743 | class 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 |
no outgoing calls
searching dependent graphs…