View Source Anthropic.Messages.Content.ToolResult (anthropic_community v0.5.0)

The result of executing a tool, sent back to the API as a tool_result content block inside a user message. tool_use_id must match the id of the corresponding Anthropic.Messages.Content.ToolUse block the assistant requested.

Summary

Types

@type t() :: %Anthropic.Messages.Content.ToolResult{
  cache_control: map() | nil,
  content: String.t() | [map()],
  is_error: boolean(),
  tool_use_id: String.t()
}