Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class CodeExecutionCallContent(BaseModel):
"""A unique ID for this specific tool call."""

arguments: CodeExecutionCallArguments
"""The arguments to pass to the code execution."""
"""Required. The arguments to pass to the code execution."""

type: Literal["code_execution_call"]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class CodeExecutionCallContentParam(TypedDict, total=False):
"""A unique ID for this specific tool call."""

arguments: Required[CodeExecutionCallArgumentsParam]
"""The arguments to pass to the code execution."""
"""Required. The arguments to pass to the code execution."""

type: Required[Literal["code_execution_call"]]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class CodeExecutionResultContent(BaseModel):
"""ID to match the ID from the code execution call block."""

result: str
"""The output of the code execution."""
"""Required. The output of the code execution."""

type: Literal["code_execution_result"]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class CodeExecutionResultContentParam(TypedDict, total=False):
"""ID to match the ID from the code execution call block."""

result: Required[str]
"""The output of the code execution."""
"""Required. The output of the code execution."""

type: Required[Literal["code_execution_result"]]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class FileSearchResultContent(BaseModel):
type: Literal["file_search_result"]

result: Optional[List[Result]] = None
"""The results of the File Search."""
"""Required. The results of the File Search."""

signature: Optional[str] = None
"""A signature hash for backend validation."""
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class FileSearchResultContentParam(TypedDict, total=False):
type: Required[Literal["file_search_result"]]

result: Iterable[Result]
"""The results of the File Search."""
"""Required. The results of the File Search."""

signature: str
"""A signature hash for backend validation."""
4 changes: 2 additions & 2 deletions google/genai/_interactions/types/function_call_content.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ class FunctionCallContent(BaseModel):
"""A unique ID for this specific tool call."""

arguments: Dict[str, object]
"""The arguments to pass to the function."""
"""Required. The arguments to pass to the function."""

name: str
"""The name of the tool to call."""
"""Required. The name of the tool to call."""

type: Literal["function_call"]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ class FunctionCallContentParam(TypedDict, total=False):
"""A unique ID for this specific tool call."""

arguments: Required[Dict[str, object]]
"""The arguments to pass to the function."""
"""Required. The arguments to pass to the function."""

name: Required[str]
"""The name of the tool to call."""
"""Required. The name of the tool to call."""

type: Required[Literal["function_call"]]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class GoogleSearchCallContent(BaseModel):
"""A unique ID for this specific tool call."""

arguments: GoogleSearchCallArguments
"""The arguments to pass to Google Search."""
"""Required. The arguments to pass to Google Search."""

type: Literal["google_search_call"]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class GoogleSearchCallContentParam(TypedDict, total=False):
"""A unique ID for this specific tool call."""

arguments: Required[GoogleSearchCallArgumentsParam]
"""The arguments to pass to Google Search."""
"""Required. The arguments to pass to Google Search."""

type: Required[Literal["google_search_call"]]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class GoogleSearchResultContent(BaseModel):
"""ID to match the ID from the google search call block."""

result: List[GoogleSearchResult]
"""The results of the Google Search."""
"""Required. The results of the Google Search."""

type: Literal["google_search_result"]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class GoogleSearchResultContentParam(TypedDict, total=False):
"""ID to match the ID from the google search call block."""

result: Required[Iterable[GoogleSearchResultParam]]
"""The results of the Google Search."""
"""Required. The results of the Google Search."""

type: Required[Literal["google_search_result"]]

Expand Down
12 changes: 6 additions & 6 deletions google/genai/_interactions/types/interaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,22 +82,22 @@ class Interaction(BaseModel):
"""The Interaction resource."""

id: str
"""Output only. A unique identifier for the interaction completion."""
"""Required. Output only. A unique identifier for the interaction completion."""

created: datetime
"""Output only.
"""Required.

The time at which the response was created in ISO 8601 format
Output only. The time at which the response was created in ISO 8601 format
(YYYY-MM-DDThh:mm:ssZ).
"""

status: Literal["in_progress", "requires_action", "completed", "failed", "cancelled", "incomplete"]
"""Output only. The status of the interaction."""
"""Required. Output only. The status of the interaction."""

updated: datetime
"""Output only.
"""Required.

The time at which the response was last updated in ISO 8601 format
Output only. The time at which the response was last updated in ISO 8601 format
(YYYY-MM-DDThh:mm:ssZ).
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ class InteractionCompleteEvent(BaseModel):
event_type: Literal["interaction.complete"]

interaction: Interaction
"""
"""Required.

The completed interaction with empty outputs to reduce the payload size.
Use the preceding ContentDelta events for the actual output.
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ class MCPServerToolCallContent(BaseModel):
"""A unique ID for this specific tool call."""

arguments: Dict[str, object]
"""The JSON object of arguments for the function."""
"""Required. The JSON object of arguments for the function."""

name: str
"""The name of the tool which was called."""
"""Required. The name of the tool which was called."""

server_name: str
"""The name of the used MCP server."""
"""Required. The name of the used MCP server."""

type: Literal["mcp_server_tool_call"]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ class MCPServerToolCallContentParam(TypedDict, total=False):
"""A unique ID for this specific tool call."""

arguments: Required[Dict[str, object]]
"""The JSON object of arguments for the function."""
"""Required. The JSON object of arguments for the function."""

name: Required[str]
"""The name of the tool which was called."""
"""Required. The name of the tool which was called."""

server_name: Required[str]
"""The name of the used MCP server."""
"""Required. The name of the used MCP server."""

type: Required[Literal["mcp_server_tool_call"]]

Expand Down
2 changes: 1 addition & 1 deletion google/genai/_interactions/types/text_content.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class TextContent(BaseModel):
"""A text content block."""

text: str
"""The text content."""
"""Required. The text content."""

type: Literal["text"]

Expand Down
2 changes: 1 addition & 1 deletion google/genai/_interactions/types/text_content_param.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class TextContentParam(TypedDict, total=False):
"""A text content block."""

text: Required[str]
"""The text content."""
"""Required. The text content."""

type: Required[Literal["text"]]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class URLContextCallContent(BaseModel):
"""A unique ID for this specific tool call."""

arguments: URLContextCallArguments
"""The arguments to pass to the URL context."""
"""Required. The arguments to pass to the URL context."""

type: Literal["url_context_call"]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class URLContextCallContentParam(TypedDict, total=False):
"""A unique ID for this specific tool call."""

arguments: Required[URLContextCallArgumentsParam]
"""The arguments to pass to the URL context."""
"""Required. The arguments to pass to the URL context."""

type: Required[Literal["url_context_call"]]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class URLContextResultContent(BaseModel):
"""ID to match the ID from the url context call block."""

result: List[URLContextResult]
"""The results of the URL context."""
"""Required. The results of the URL context."""

type: Literal["url_context_result"]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class URLContextResultContentParam(TypedDict, total=False):
"""ID to match the ID from the url context call block."""

result: Required[Iterable[URLContextResultParam]]
"""The results of the URL context."""
"""Required. The results of the URL context."""

type: Required[Literal["url_context_result"]]

Expand Down