Expand description
Anthropic Messages API response shapes.
Tool calls are type: "tool_use" content blocks with an input object
and a mandatory id; a tool-calling turn ends with
stop_reason: "tool_use"
(https://platform.claude.com/docs/en/agents-and-tools/tool-use/overview).
Functionsยง
- text_
response - Assistant text response (
stop_reason: "end_turn"). - tool_
use - A
tool_usecontent block. - tool_
use_ response - Assistant tool-use response (
stop_reason: "tool_use").