From 3d5c1d0a55b1d84e064bbc9478946c8da674d8b2 Mon Sep 17 00:00:00 2001 From: Annie Luc Date: Thu, 4 Jun 2026 18:40:25 -0700 Subject: [PATCH] chore: Remove 'signature' properties from various tool/function call/result schemas PiperOrigin-RevId: 927001266 --- .../_interactions/types/function_call_step.py | 5 +---- .../types/function_call_step_param.py | 14 ++------------ .../_interactions/types/function_result_step.py | 3 --- .../types/function_result_step_param.py | 11 +---------- .../types/mcp_server_tool_call_step.py | 5 +---- .../types/mcp_server_tool_call_step_param.py | 14 ++------------ .../types/mcp_server_tool_result_step.py | 3 --- .../types/mcp_server_tool_result_step_param.py | 11 +---------- google/genai/_interactions/types/step_delta.py | 6 ------ 9 files changed, 8 insertions(+), 64 deletions(-) diff --git a/google/genai/_interactions/types/function_call_step.py b/google/genai/_interactions/types/function_call_step.py index 5486603f1..c0e33ee13 100644 --- a/google/genai/_interactions/types/function_call_step.py +++ b/google/genai/_interactions/types/function_call_step.py @@ -15,7 +15,7 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import Dict, Optional +from typing import Dict from typing_extensions import Literal from .._models import BaseModel @@ -36,6 +36,3 @@ class FunctionCallStep(BaseModel): """Required. The name of the tool to call.""" type: Literal["function_call"] - - signature: Optional[str] = None - """A signature hash for backend validation.""" diff --git a/google/genai/_interactions/types/function_call_step_param.py b/google/genai/_interactions/types/function_call_step_param.py index b6c487295..aa87ea45e 100644 --- a/google/genai/_interactions/types/function_call_step_param.py +++ b/google/genai/_interactions/types/function_call_step_param.py @@ -17,12 +17,8 @@ from __future__ import annotations -from typing import Dict, Union -from typing_extensions import Literal, Required, Annotated, TypedDict - -from .._types import Base64FileInput -from .._utils import PropertyInfo -from .._models import set_pydantic_config +from typing import Dict +from typing_extensions import Literal, Required, TypedDict __all__ = ["FunctionCallStepParam"] @@ -40,9 +36,3 @@ class FunctionCallStepParam(TypedDict, total=False): """Required. The name of the tool to call.""" type: Required[Literal["function_call"]] - - signature: Annotated[Union[str, Base64FileInput], PropertyInfo(format="base64")] - """A signature hash for backend validation.""" - - -set_pydantic_config(FunctionCallStepParam, {"arbitrary_types_allowed": True}) diff --git a/google/genai/_interactions/types/function_result_step.py b/google/genai/_interactions/types/function_result_step.py index fc74d21fe..ab2863653 100644 --- a/google/genai/_interactions/types/function_result_step.py +++ b/google/genai/_interactions/types/function_result_step.py @@ -47,6 +47,3 @@ class FunctionResultStep(BaseModel): name: Optional[str] = None """The name of the tool that was called.""" - - signature: Optional[str] = None - """A signature hash for backend validation.""" diff --git a/google/genai/_interactions/types/function_result_step_param.py b/google/genai/_interactions/types/function_result_step_param.py index feb63c60c..6e80a3b4e 100644 --- a/google/genai/_interactions/types/function_result_step_param.py +++ b/google/genai/_interactions/types/function_result_step_param.py @@ -18,11 +18,8 @@ from __future__ import annotations from typing import Union, Iterable -from typing_extensions import Literal, Required, Annotated, TypeAlias, TypedDict +from typing_extensions import Literal, Required, TypeAlias, TypedDict -from .._types import Base64FileInput -from .._utils import PropertyInfo -from .._models import set_pydantic_config from .content_param import ContentParam from .text_content_param import TextContentParam from .image_content_param import ImageContentParam @@ -48,9 +45,3 @@ class FunctionResultStepParam(TypedDict, total=False): name: str """The name of the tool that was called.""" - - signature: Annotated[Union[str, Base64FileInput], PropertyInfo(format="base64")] - """A signature hash for backend validation.""" - - -set_pydantic_config(FunctionResultStepParam, {"arbitrary_types_allowed": True}) diff --git a/google/genai/_interactions/types/mcp_server_tool_call_step.py b/google/genai/_interactions/types/mcp_server_tool_call_step.py index 18907faeb..f6d4a730b 100644 --- a/google/genai/_interactions/types/mcp_server_tool_call_step.py +++ b/google/genai/_interactions/types/mcp_server_tool_call_step.py @@ -15,7 +15,7 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import Dict, Optional +from typing import Dict from typing_extensions import Literal from .._models import BaseModel @@ -39,6 +39,3 @@ class MCPServerToolCallStep(BaseModel): """Required. The name of the used MCP server.""" type: Literal["mcp_server_tool_call"] - - signature: Optional[str] = None - """A signature hash for backend validation.""" diff --git a/google/genai/_interactions/types/mcp_server_tool_call_step_param.py b/google/genai/_interactions/types/mcp_server_tool_call_step_param.py index b59c5fbf9..dcd19447a 100644 --- a/google/genai/_interactions/types/mcp_server_tool_call_step_param.py +++ b/google/genai/_interactions/types/mcp_server_tool_call_step_param.py @@ -17,12 +17,8 @@ from __future__ import annotations -from typing import Dict, Union -from typing_extensions import Literal, Required, Annotated, TypedDict - -from .._types import Base64FileInput -from .._utils import PropertyInfo -from .._models import set_pydantic_config +from typing import Dict +from typing_extensions import Literal, Required, TypedDict __all__ = ["MCPServerToolCallStepParam"] @@ -43,9 +39,3 @@ class MCPServerToolCallStepParam(TypedDict, total=False): """Required. The name of the used MCP server.""" type: Required[Literal["mcp_server_tool_call"]] - - signature: Annotated[Union[str, Base64FileInput], PropertyInfo(format="base64")] - """A signature hash for backend validation.""" - - -set_pydantic_config(MCPServerToolCallStepParam, {"arbitrary_types_allowed": True}) diff --git a/google/genai/_interactions/types/mcp_server_tool_result_step.py b/google/genai/_interactions/types/mcp_server_tool_result_step.py index 2249a0310..95e76a829 100644 --- a/google/genai/_interactions/types/mcp_server_tool_result_step.py +++ b/google/genai/_interactions/types/mcp_server_tool_result_step.py @@ -47,6 +47,3 @@ class MCPServerToolResultStep(BaseModel): server_name: Optional[str] = None """The name of the used MCP server.""" - - signature: Optional[str] = None - """A signature hash for backend validation.""" diff --git a/google/genai/_interactions/types/mcp_server_tool_result_step_param.py b/google/genai/_interactions/types/mcp_server_tool_result_step_param.py index 4d8637ba9..b5ae38467 100644 --- a/google/genai/_interactions/types/mcp_server_tool_result_step_param.py +++ b/google/genai/_interactions/types/mcp_server_tool_result_step_param.py @@ -18,11 +18,8 @@ from __future__ import annotations from typing import Union, Iterable -from typing_extensions import Literal, Required, Annotated, TypeAlias, TypedDict +from typing_extensions import Literal, Required, TypeAlias, TypedDict -from .._types import Base64FileInput -from .._utils import PropertyInfo -from .._models import set_pydantic_config from .content_param import ContentParam from .text_content_param import TextContentParam from .image_content_param import ImageContentParam @@ -48,9 +45,3 @@ class MCPServerToolResultStepParam(TypedDict, total=False): server_name: str """The name of the used MCP server.""" - - signature: Annotated[Union[str, Base64FileInput], PropertyInfo(format="base64")] - """A signature hash for backend validation.""" - - -set_pydantic_config(MCPServerToolResultStepParam, {"arbitrary_types_allowed": True}) diff --git a/google/genai/_interactions/types/step_delta.py b/google/genai/_interactions/types/step_delta.py index 5cb3b7e24..957c5626f 100644 --- a/google/genai/_interactions/types/step_delta.py +++ b/google/genai/_interactions/types/step_delta.py @@ -227,9 +227,6 @@ class DeltaMCPServerToolCall(BaseModel): type: Literal["mcp_server_tool_call"] - signature: Optional[str] = None - """A signature hash for backend validation.""" - class DeltaFileSearchCall(BaseModel): type: Literal["file_search_call"] @@ -295,9 +292,6 @@ class DeltaMCPServerToolResult(BaseModel): server_name: Optional[str] = None - signature: Optional[str] = None - """A signature hash for backend validation.""" - class DeltaFileSearchResult(BaseModel): result: List[object]