From 9f9f96284056d63bca80b635038f1c0c3bc15aac Mon Sep 17 00:00:00 2001 From: anadi45 Date: Sun, 20 Jul 2025 02:11:12 +0530 Subject: [PATCH] feat(responses): support max_tool_calls --- src/resources/responses/responses.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/resources/responses/responses.ts b/src/resources/responses/responses.ts index 6d6f6ef1c..d0078ffaf 100644 --- a/src/resources/responses/responses.ts +++ b/src/resources/responses/responses.ts @@ -4734,6 +4734,14 @@ export interface ResponseCreateParamsBase { */ max_output_tokens?: number | null; + /** + * The maximum number of total calls to built-in tools that can be processed in a + * response. This maximum number applies across all built-in tool calls, not per + * individual tool. Any further attempts to call a tool by the model will be + * ignored. + */ + max_tool_calls?: number | null; + /** * Set of 16 key-value pairs that can be attached to an object. This can be useful * for storing additional information about the object in a structured format, and