Raxol.AgentClientProtocol.Schema.ToolCallContentWrapper (Raxol Agent Client Protocol v0.1.0)

Copy Markdown View Source

Standard content block wrapper for tool call content (the "content" variant of ToolCallContent; named Content in the official schema, but kept as ToolCallContentWrapper here to avoid colliding with Schema.ContentBlock, the tagged-union content block type).

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

Summary

Functions

Total: never raises. A missing/unparseable content is the only failure mode (required field).

Types

t()

@type t() :: %Raxol.AgentClientProtocol.Schema.ToolCallContentWrapper{
  _meta: map(),
  content: Raxol.AgentClientProtocol.Schema.ContentBlock.t()
}

Functions

from_json(map)

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

Total: never raises. A missing/unparseable content is the only failure mode (required field).

new(content)

to_json(c)

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