Skip to content

Commit 795a647

Browse files
authored
Merge branch 'main' into fix/retry-delay-issue-1875
2 parents 3c77703 + 15666c0 commit 795a647

30 files changed

+1960
-670
lines changed

google/genai/_interactions/types/code_execution_call_content.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
1717

18+
from typing import Optional
1819
from typing_extensions import Literal
1920

2021
from .._models import BaseModel
@@ -33,3 +34,6 @@ class CodeExecutionCallContent(BaseModel):
3334
"""The arguments to pass to the code execution."""
3435

3536
type: Literal["code_execution_call"]
37+
38+
signature: Optional[str] = None
39+
"""A signature hash for backend validation."""

google/genai/_interactions/types/code_execution_call_content_param.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,6 @@ class CodeExecutionCallContentParam(TypedDict, total=False):
3434
"""The arguments to pass to the code execution."""
3535

3636
type: Required[Literal["code_execution_call"]]
37+
38+
signature: str
39+
"""A signature hash for backend validation."""

google/genai/_interactions/types/content_delta.py

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,9 @@ class DeltaFunctionCallDelta(BaseModel):
158158

159159
type: Literal["function_call"]
160160

161+
signature: Optional[str] = None
162+
"""A signature hash for backend validation."""
163+
161164

162165
DeltaFunctionResultDeltaResultItemsItem: TypeAlias = Union[TextContent, ImageContent]
163166

@@ -182,6 +185,9 @@ class DeltaFunctionResultDelta(BaseModel):
182185

183186
name: Optional[str] = None
184187

188+
signature: Optional[str] = None
189+
"""A signature hash for backend validation."""
190+
185191

186192
class DeltaCodeExecutionCallDelta(BaseModel):
187193
id: str
@@ -192,6 +198,9 @@ class DeltaCodeExecutionCallDelta(BaseModel):
192198

193199
type: Literal["code_execution_call"]
194200

201+
signature: Optional[str] = None
202+
"""A signature hash for backend validation."""
203+
195204

196205
class DeltaCodeExecutionResultDelta(BaseModel):
197206
call_id: str
@@ -204,6 +213,7 @@ class DeltaCodeExecutionResultDelta(BaseModel):
204213
is_error: Optional[bool] = None
205214

206215
signature: Optional[str] = None
216+
"""A signature hash for backend validation."""
207217

208218

209219
class DeltaURLContextCallDelta(BaseModel):
@@ -215,6 +225,9 @@ class DeltaURLContextCallDelta(BaseModel):
215225

216226
type: Literal["url_context_call"]
217227

228+
signature: Optional[str] = None
229+
"""A signature hash for backend validation."""
230+
218231

219232
class DeltaURLContextResultDelta(BaseModel):
220233
call_id: str
@@ -227,6 +240,7 @@ class DeltaURLContextResultDelta(BaseModel):
227240
is_error: Optional[bool] = None
228241

229242
signature: Optional[str] = None
243+
"""A signature hash for backend validation."""
230244

231245

232246
class DeltaGoogleSearchCallDelta(BaseModel):
@@ -238,6 +252,9 @@ class DeltaGoogleSearchCallDelta(BaseModel):
238252

239253
type: Literal["google_search_call"]
240254

255+
signature: Optional[str] = None
256+
"""A signature hash for backend validation."""
257+
241258

242259
class DeltaGoogleSearchResultDelta(BaseModel):
243260
call_id: str
@@ -250,6 +267,7 @@ class DeltaGoogleSearchResultDelta(BaseModel):
250267
is_error: Optional[bool] = None
251268

252269
signature: Optional[str] = None
270+
"""A signature hash for backend validation."""
253271

254272

255273
class DeltaMCPServerToolCallDelta(BaseModel):
@@ -264,6 +282,9 @@ class DeltaMCPServerToolCallDelta(BaseModel):
264282

265283
type: Literal["mcp_server_tool_call"]
266284

285+
signature: Optional[str] = None
286+
"""A signature hash for backend validation."""
287+
267288

268289
DeltaMCPServerToolResultDeltaResultItemsItem: TypeAlias = Union[TextContent, ImageContent]
269290

@@ -288,13 +309,19 @@ class DeltaMCPServerToolResultDelta(BaseModel):
288309

289310
server_name: Optional[str] = None
290311

312+
signature: Optional[str] = None
313+
"""A signature hash for backend validation."""
314+
291315

292316
class DeltaFileSearchCallDelta(BaseModel):
293317
id: str
294318
"""A unique ID for this specific tool call."""
295319

296320
type: Literal["file_search_call"]
297321

322+
signature: Optional[str] = None
323+
"""A signature hash for backend validation."""
324+
298325

299326
class DeltaFileSearchResultDeltaResult(BaseModel):
300327
"""The result of the File Search."""

google/genai/_interactions/types/file_search_call_content.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
1717

18+
from typing import Optional
1819
from typing_extensions import Literal
1920

2021
from .._models import BaseModel
@@ -29,3 +30,6 @@ class FileSearchCallContent(BaseModel):
2930
"""A unique ID for this specific tool call."""
3031

3132
type: Literal["file_search_call"]
33+
34+
signature: Optional[str] = None
35+
"""A signature hash for backend validation."""

google/genai/_interactions/types/file_search_call_content_param.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,6 @@ class FileSearchCallContentParam(TypedDict, total=False):
2929
"""A unique ID for this specific tool call."""
3030

3131
type: Required[Literal["file_search_call"]]
32+
33+
signature: str
34+
"""A signature hash for backend validation."""

google/genai/_interactions/types/file_search_result_content.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,6 @@ class FileSearchResultContent(BaseModel):
4646

4747
result: Optional[List[Result]] = None
4848
"""The results of the File Search."""
49+
50+
signature: Optional[str] = None
51+
"""A signature hash for backend validation."""

google/genai/_interactions/types/file_search_result_content_param.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,6 @@ class FileSearchResultContentParam(TypedDict, total=False):
4646

4747
result: Iterable[Result]
4848
"""The results of the File Search."""
49+
50+
signature: str
51+
"""A signature hash for backend validation."""

google/genai/_interactions/types/function_call_content.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
1717

18-
from typing import Dict
18+
from typing import Dict, Optional
1919
from typing_extensions import Literal
2020

2121
from .._models import BaseModel
@@ -36,3 +36,6 @@ class FunctionCallContent(BaseModel):
3636
"""The name of the tool to call."""
3737

3838
type: Literal["function_call"]
39+
40+
signature: Optional[str] = None
41+
"""A signature hash for backend validation."""

google/genai/_interactions/types/function_call_content_param.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,6 @@ class FunctionCallContentParam(TypedDict, total=False):
3636
"""The name of the tool to call."""
3737

3838
type: Required[Literal["function_call"]]
39+
40+
signature: str
41+
"""A signature hash for backend validation."""

google/genai/_interactions/types/function_result_content.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,6 @@ class FunctionResultContent(BaseModel):
5050

5151
name: Optional[str] = None
5252
"""The name of the tool that was called."""
53+
54+
signature: Optional[str] = None
55+
"""A signature hash for backend validation."""

0 commit comments

Comments
 (0)