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

Copy Markdown View Source

An update to an existing tool call. ToolCallUpdateFields is flattened into the same wire object as toolCallId and _meta (a "serde flatten"), not nested under its own key.

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

Summary

Functions

Total: never raises. Missing/non-string toolCallId is the only failure mode.

Types

t()

@type t() :: %Raxol.AgentClientProtocol.Schema.ToolCallUpdate{
  _meta: map(),
  fields: Raxol.AgentClientProtocol.Schema.ToolCallUpdateFields.t(),
  tool_call_id: String.t()
}

Functions

from_json(map)

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

Total: never raises. Missing/non-string toolCallId is the only failure mode.

new(tool_call_id, fields)

to_json(u)

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