Raxol.AgentClientProtocol.Schema.Unstable.SessionConfigSelect (Raxol Agent Client Protocol v0.1.0)

Copy Markdown View Source

A single-value selector (dropdown) session configuration option payload. (Unstable)

Unlike its siblings this struct has no _meta of its own: it is never independently serialized on the wire, only flattened into its parent SessionConfigOption's top-level JSON object (alongside "type" => "select"), which is the one that owns the wire object's _meta catch-all.

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

Summary

Types

t()

@type t() :: %Raxol.AgentClientProtocol.Schema.Unstable.SessionConfigSelect{
  current_value: term(),
  options:
    Raxol.AgentClientProtocol.Schema.Unstable.SessionConfigSelectOptions.t()
}

Functions

from_json(map)

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

new(current_value, options)

to_json(s)

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