anthropic.internal._tool_result_content
(internal) A tool result's `content`: the plain string when the result is text only (one text block, or nothing), the block list otherwise.
Reference version
Signature
function anthropic.internal._tool_result_content(
blocks: anthropic.internal.AnthBlock[]
) -> string | anthropic.internal.AnthBlock[]
(internal) A tool result's content: the plain string when the result is
text only (one text block, or nothing), the block list otherwise.
Source:<builtin>/anthropic/ns_internal/messages.bamlbytes 17332–17608