Public thread service object for the app-server client.
The struct keeps the owning client plus the latest typed thread snapshot.
Operations that mutate server state return a fresh %Thread{} with an updated
snapshot when the server returns one.
Summary
Functions
Lists one backwards page of full turns for a paginated thread.
Types
@type t() :: %CodexEx.AppServer.Thread{ client: CodexEx.AppServer.Client.t(), id: binary(), settings: CodexEx.AppServer.ThreadSettings.t() | nil, snapshot: CodexEx.AppServer.ThreadSnapshot.t() }
Functions
@spec list_turns_page( %CodexEx.AppServer.Thread{ client: term(), id: term(), settings: term(), snapshot: term() }, keyword() ) :: {:ok, CodexEx.AppServer.Client.thread_turns_page()} | {:error, term()}
Lists one backwards page of full turns for a paginated thread.
@spec new( CodexEx.AppServer.Client.t(), CodexEx.AppServer.ThreadSnapshot.t(), CodexEx.AppServer.ThreadSettings.t() | nil ) :: %CodexEx.AppServer.Thread{ client: term(), id: term(), settings: term(), snapshot: term() }