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(
msgs: anthropic.internal.Message[],
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 17695–18414