ACPex.Schema.Types.SessionUpdate.ToolCallUpdate (ACPex v0.1.1)

Copy Markdown View Source

Tool call update.

Status update for an existing tool call.

Required Fields

  • type - Always "tool_call_update" for this variant
  • session_update - Update identifier
  • tool_call_id - Unique identifier for the tool call being updated

Optional Fields

  • status - Updated status of the tool call (string)
  • title - Updated title for the tool call (string)
  • kind - Updated kind of tool (string)
  • content - Updated tool call content blocks (list of maps)
  • raw_input - Updated raw input parameters (map)
  • raw_output - Updated raw output data (map)
  • locations - Updated file locations related to this tool call (list of maps)
  • meta - Additional metadata (map)

Example

%ACPex.Schema.Types.SessionUpdate.ToolCallUpdate{
  type: "tool_call_update",
  session_update: "update-124",
  tool_call_id: "tool-456",
  status: "completed",
  content: [%{"type" => "text", "text" => "File read successfully"}]
}

JSON Representation

{
  "type": "tool_call_update",
  "sessionUpdate": "update-124",
  "toolCallId": "tool-456",
  "status": "completed",
  "content": [{"type": "text", "text": "File read successfully"}]
}

Summary

Functions

Creates a changeset for validation.

Types

t()

@type t() :: %ACPex.Schema.Types.SessionUpdate.ToolCallUpdate{
  content: [map()] | nil,
  kind: String.t() | nil,
  locations: [map()] | nil,
  meta: map() | nil,
  raw_input: map() | nil,
  raw_output: map() | nil,
  session_update: String.t(),
  status: String.t() | nil,
  title: String.t() | nil,
  tool_call_id: String.t(),
  type: String.t()
}

Functions

changeset(struct \\ %__MODULE__{}, params)

@spec changeset(t(), map()) :: Ecto.Changeset.t()

Creates a changeset for validation.

Required Fields

  • session_update - Must be present
  • tool_call_id - Must be present

The type field defaults to "tool_call_update".