ACP.ToolCall (agent_client_protocol v0.1.0)

Copy Markdown View Source

Represents a tool call that the language model has requested.

Summary

Types

t()

@type t() :: %ACP.ToolCall{
  content: [ACP.ToolCallContent.t()],
  kind: ACP.ToolKind.t(),
  locations: [ACP.ToolCallLocation.t()],
  meta: map() | nil,
  raw_input: any() | nil,
  raw_output: any() | nil,
  status: ACP.ToolCallStatus.t(),
  title: String.t(),
  tool_call_id: String.t()
}

Functions

from_json(map)

new(tool_call_id, title)

to_json(tc)

to_update(tc)

update(tc, fields)