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

Copy Markdown View Source

A session configuration option selector and its current state. The kind-specific payload (currently only select) is flattened directly into this struct's top-level wire object alongside id/name/etc. (Unstable)

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

Summary

Types

t()

@type t() :: %Raxol.AgentClientProtocol.Schema.Unstable.SessionConfigOption{
  _meta: map(),
  category:
    Raxol.AgentClientProtocol.Schema.Unstable.SessionConfigOptionCategory.t()
    | nil,
  description: String.t() | nil,
  id: String.t(),
  kind: Raxol.AgentClientProtocol.Schema.Unstable.SessionConfigKind.t(),
  name: String.t()
}

Functions

from_json(map)

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

new(id, name, kind)

select(id, name, current_value, options)

@spec select(String.t(), String.t(), term(), term()) :: t()

Convenience: build a select-kind option directly.

to_json(o)

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