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

Copy Markdown View Source

The session/new response: the new session id plus optional mode/model/ config-option state (the latter two are unstable extensions).

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

Summary

Types

t()

@type t() :: %Raxol.AgentClientProtocol.Schema.AgentTypes.NewSessionResponse{
  _meta: map(),
  config_options:
    [Raxol.AgentClientProtocol.Schema.Unstable.SessionConfigOption.t()] | nil,
  models: Raxol.AgentClientProtocol.Schema.Unstable.SessionModelState.t() | nil,
  modes: Raxol.AgentClientProtocol.Schema.AgentTypes.SessionModeState.t() | nil,
  session_id: String.t()
}

Functions

from_json(map)

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

new(session_id)

@spec new(String.t()) :: t()

to_json(r)

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