/v1/messages。
工具调用
用tools(每个含 name、description、input_schema)声明工具,用
tool_choice 控制选择;支持多轮 tool_use / tool_result 内容块。
流式
设置stream: true 按 Anthropic SSE 事件流返回:
message_start、content_block_start、content_block_delta、
content_block_stop、message_delta、message_stop。
参数
支持:model、messages、max_tokens(必填)、system、temperature、
top_p、top_k、stop_sequences、tools、tool_choice、stream。