Skip to main content
在请求中声明 tools,模型会在需要时返回 tool_calls,由你执行并把结果回传。
模型返回 tool_calls 后,由你的代码执行函数,再把结果作为 role: "tool" 消息回传,模型据此生成最终答复。