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
8 changes: 4 additions & 4 deletions google/genai/_gaos/types/interactions/functionresultstep.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@ class FunctionResultStepResult(BaseModel):
"FunctionResultStepResultUnionParam",
Union[FunctionResultStepResultParam, List[FunctionResultSubcontentParam], str],
)
r"""Required. The result of the tool call."""
r"""The result of the tool call."""


FunctionResultStepResultUnion = TypeAliasType(
"FunctionResultStepResultUnion",
Union[FunctionResultStepResult, List[FunctionResultSubcontent], str],
)
r"""Required. The result of the tool call."""
r"""The result of the tool call."""


class FunctionResultStepParam(TypedDict):
Expand All @@ -58,7 +58,7 @@ class FunctionResultStepParam(TypedDict):
call_id: str
r"""Required. ID to match the ID from the function call block."""
result: FunctionResultStepResultUnionParam
r"""Required. The result of the tool call."""
r"""The result of the tool call."""
is_error: NotRequired[bool]
r"""Whether the tool call resulted in an error."""
name: NotRequired[str]
Expand All @@ -73,7 +73,7 @@ class FunctionResultStep(BaseModel):
r"""Required. ID to match the ID from the function call block."""

result: FunctionResultStepResultUnion
r"""Required. The result of the tool call."""
r"""The result of the tool call."""

is_error: Optional[bool] = None
r"""Whether the tool call resulted in an error."""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@ class MCPServerToolResultStepResult(BaseModel):
"MCPServerToolResultStepResultUnionParam",
Union[MCPServerToolResultStepResultParam, str, List[FunctionResultSubcontentParam]],
)
r"""Required. The output from the MCP server call. Can be simple text or rich content."""
r"""The output from the MCP server call. Can be simple text or rich content."""


MCPServerToolResultStepResultUnion = TypeAliasType(
"MCPServerToolResultStepResultUnion",
Union[MCPServerToolResultStepResult, str, List[FunctionResultSubcontent]],
)
r"""Required. The output from the MCP server call. Can be simple text or rich content."""
r"""The output from the MCP server call. Can be simple text or rich content."""


class MCPServerToolResultStepParam(TypedDict):
Expand All @@ -58,7 +58,7 @@ class MCPServerToolResultStepParam(TypedDict):
call_id: str
r"""Required. ID to match the ID from the function call block."""
result: MCPServerToolResultStepResultUnionParam
r"""Required. The output from the MCP server call. Can be simple text or rich content."""
r"""The output from the MCP server call. Can be simple text or rich content."""
name: NotRequired[str]
r"""Name of the tool which is called for this specific tool call."""
server_name: NotRequired[str]
Expand All @@ -73,7 +73,7 @@ class MCPServerToolResultStep(BaseModel):
r"""Required. ID to match the ID from the function call block."""

result: MCPServerToolResultStepResultUnion
r"""Required. The output from the MCP server call. Can be simple text or rich content."""
r"""The output from the MCP server call. Can be simple text or rich content."""

name: Optional[str] = None
r"""Name of the tool which is called for this specific tool call."""
Expand Down
Loading