anthropic.internal._push_tool_result

(internal) Append one tool_result block, extending the trailing group when open.

Reference version

Signature

function anthropic.internal._push_tool_result(
id: string,
content: string | anthropic.internal.AnthBlock[],
is_error: bool
) -> void

(internal) Append one tool_result block, extending the trailing group when open.

Source:<builtin>/anthropic/ns_internal/messages.bamlbytes 1769518414