Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions google/genai/_interactions/types/function_call_step.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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."""
14 changes: 2 additions & 12 deletions google/genai/_interactions/types/function_call_step_param.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

Expand All @@ -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})
3 changes: 0 additions & 3 deletions google/genai/_interactions/types/function_result_step.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
11 changes: 1 addition & 10 deletions google/genai/_interactions/types/function_result_step_param.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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})
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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."""
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

Expand All @@ -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})
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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})
6 changes: 0 additions & 6 deletions google/genai/_interactions/types/step_delta.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down Expand Up @@ -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]
Expand Down
Loading