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

Copy Markdown View Source

The session/prompt response: why the turn ended.

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

Summary

Types

t()

@type t() :: %Raxol.AgentClientProtocol.Schema.AgentTypes.PromptResponse{
  _meta: map(),
  stop_reason: Raxol.AgentClientProtocol.Schema.AgentTypes.StopReason.t()
}

Functions

from_json(map)

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

new(stop_reason)

to_json(r)

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