Raxol.AgentClientProtocol.Schema.AgentTypes.SessionModeState (Raxol Agent Client Protocol v0.1.0)

Copy Markdown View Source

The set of available session modes and the one currently active.

Ported from the MIT f1729/agent_client_protocol (c) 2025 f1729; see NOTICE.md.

Summary

Types

t()

@type t() :: %Raxol.AgentClientProtocol.Schema.AgentTypes.SessionModeState{
  _meta: map(),
  available_modes: [Raxol.AgentClientProtocol.Schema.AgentTypes.SessionMode.t()],
  current_mode_id: String.t()
}

Functions

from_json(map)

@spec from_json(term()) :: {:ok, t()} | {:error, term()}

new(current_mode_id, available_modes)

to_json(s)

@spec to_json(t()) :: map()