@@ -59,6 +59,7 @@ def create(
5959 messages : Iterable [turn_create_params .Message ],
6060 documents : Iterable [turn_create_params .Document ] | NotGiven = NOT_GIVEN ,
6161 stream : Literal [False ] | NotGiven = NOT_GIVEN ,
62+ tool_config : turn_create_params .ToolConfig | NotGiven = NOT_GIVEN ,
6263 toolgroups : List [turn_create_params .Toolgroup ] | NotGiven = NOT_GIVEN ,
6364 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
6465 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -69,6 +70,8 @@ def create(
6970 ) -> Turn :
7071 """
7172 Args:
73+ tool_config: Configuration for tool use.
74+
7275 extra_headers: Send extra headers
7376
7477 extra_query: Add additional query parameters to the request
@@ -88,6 +91,7 @@ def create(
8891 messages : Iterable [turn_create_params .Message ],
8992 stream : Literal [True ],
9093 documents : Iterable [turn_create_params .Document ] | NotGiven = NOT_GIVEN ,
94+ tool_config : turn_create_params .ToolConfig | NotGiven = NOT_GIVEN ,
9195 toolgroups : List [turn_create_params .Toolgroup ] | NotGiven = NOT_GIVEN ,
9296 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
9397 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -98,6 +102,8 @@ def create(
98102 ) -> Stream [AgentTurnResponseStreamChunk ]:
99103 """
100104 Args:
105+ tool_config: Configuration for tool use.
106+
101107 extra_headers: Send extra headers
102108
103109 extra_query: Add additional query parameters to the request
@@ -117,6 +123,7 @@ def create(
117123 messages : Iterable [turn_create_params .Message ],
118124 stream : bool ,
119125 documents : Iterable [turn_create_params .Document ] | NotGiven = NOT_GIVEN ,
126+ tool_config : turn_create_params .ToolConfig | NotGiven = NOT_GIVEN ,
120127 toolgroups : List [turn_create_params .Toolgroup ] | NotGiven = NOT_GIVEN ,
121128 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
122129 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -127,6 +134,8 @@ def create(
127134 ) -> Turn | Stream [AgentTurnResponseStreamChunk ]:
128135 """
129136 Args:
137+ tool_config: Configuration for tool use.
138+
130139 extra_headers: Send extra headers
131140
132141 extra_query: Add additional query parameters to the request
@@ -146,6 +155,7 @@ def create(
146155 messages : Iterable [turn_create_params .Message ],
147156 documents : Iterable [turn_create_params .Document ] | NotGiven = NOT_GIVEN ,
148157 stream : Literal [False ] | Literal [True ] | NotGiven = NOT_GIVEN ,
158+ tool_config : turn_create_params .ToolConfig | NotGiven = NOT_GIVEN ,
149159 toolgroups : List [turn_create_params .Toolgroup ] | NotGiven = NOT_GIVEN ,
150160 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
151161 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -165,6 +175,7 @@ def create(
165175 "messages" : messages ,
166176 "documents" : documents ,
167177 "stream" : stream ,
178+ "tool_config" : tool_config ,
168179 "toolgroups" : toolgroups ,
169180 },
170181 turn_create_params .TurnCreateParams ,
@@ -244,6 +255,7 @@ async def create(
244255 messages : Iterable [turn_create_params .Message ],
245256 documents : Iterable [turn_create_params .Document ] | NotGiven = NOT_GIVEN ,
246257 stream : Literal [False ] | NotGiven = NOT_GIVEN ,
258+ tool_config : turn_create_params .ToolConfig | NotGiven = NOT_GIVEN ,
247259 toolgroups : List [turn_create_params .Toolgroup ] | NotGiven = NOT_GIVEN ,
248260 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
249261 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -254,6 +266,8 @@ async def create(
254266 ) -> Turn :
255267 """
256268 Args:
269+ tool_config: Configuration for tool use.
270+
257271 extra_headers: Send extra headers
258272
259273 extra_query: Add additional query parameters to the request
@@ -273,6 +287,7 @@ async def create(
273287 messages : Iterable [turn_create_params .Message ],
274288 stream : Literal [True ],
275289 documents : Iterable [turn_create_params .Document ] | NotGiven = NOT_GIVEN ,
290+ tool_config : turn_create_params .ToolConfig | NotGiven = NOT_GIVEN ,
276291 toolgroups : List [turn_create_params .Toolgroup ] | NotGiven = NOT_GIVEN ,
277292 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
278293 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -283,6 +298,8 @@ async def create(
283298 ) -> AsyncStream [AgentTurnResponseStreamChunk ]:
284299 """
285300 Args:
301+ tool_config: Configuration for tool use.
302+
286303 extra_headers: Send extra headers
287304
288305 extra_query: Add additional query parameters to the request
@@ -302,6 +319,7 @@ async def create(
302319 messages : Iterable [turn_create_params .Message ],
303320 stream : bool ,
304321 documents : Iterable [turn_create_params .Document ] | NotGiven = NOT_GIVEN ,
322+ tool_config : turn_create_params .ToolConfig | NotGiven = NOT_GIVEN ,
305323 toolgroups : List [turn_create_params .Toolgroup ] | NotGiven = NOT_GIVEN ,
306324 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
307325 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -312,6 +330,8 @@ async def create(
312330 ) -> Turn | AsyncStream [AgentTurnResponseStreamChunk ]:
313331 """
314332 Args:
333+ tool_config: Configuration for tool use.
334+
315335 extra_headers: Send extra headers
316336
317337 extra_query: Add additional query parameters to the request
@@ -331,6 +351,7 @@ async def create(
331351 messages : Iterable [turn_create_params .Message ],
332352 documents : Iterable [turn_create_params .Document ] | NotGiven = NOT_GIVEN ,
333353 stream : Literal [False ] | Literal [True ] | NotGiven = NOT_GIVEN ,
354+ tool_config : turn_create_params .ToolConfig | NotGiven = NOT_GIVEN ,
334355 toolgroups : List [turn_create_params .Toolgroup ] | NotGiven = NOT_GIVEN ,
335356 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
336357 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -350,6 +371,7 @@ async def create(
350371 "messages" : messages ,
351372 "documents" : documents ,
352373 "stream" : stream ,
374+ "tool_config" : tool_config ,
353375 "toolgroups" : toolgroups ,
354376 },
355377 turn_create_params .TurnCreateParams ,
0 commit comments