Skip to content

Commit f4bcca4

Browse files
hkt74copybara-github
authored andcommitted
chore: update comment
PiperOrigin-RevId: 888526820
1 parent b154a21 commit f4bcca4

27 files changed

+49
-48
lines changed

google/genai/_interactions/types/code_execution_call_content.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class CodeExecutionCallContent(BaseModel):
3131
"""A unique ID for this specific tool call."""
3232

3333
arguments: CodeExecutionCallArguments
34-
"""The arguments to pass to the code execution."""
34+
"""Required. The arguments to pass to the code execution."""
3535

3636
type: Literal["code_execution_call"]
3737

google/genai/_interactions/types/code_execution_call_content_param.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class CodeExecutionCallContentParam(TypedDict, total=False):
3535
"""A unique ID for this specific tool call."""
3636

3737
arguments: Required[CodeExecutionCallArgumentsParam]
38-
"""The arguments to pass to the code execution."""
38+
"""Required. The arguments to pass to the code execution."""
3939

4040
type: Required[Literal["code_execution_call"]]
4141

google/genai/_interactions/types/code_execution_result_content.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class CodeExecutionResultContent(BaseModel):
3030
"""ID to match the ID from the code execution call block."""
3131

3232
result: str
33-
"""The output of the code execution."""
33+
"""Required. The output of the code execution."""
3434

3535
type: Literal["code_execution_result"]
3636

google/genai/_interactions/types/code_execution_result_content_param.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class CodeExecutionResultContentParam(TypedDict, total=False):
3434
"""ID to match the ID from the code execution call block."""
3535

3636
result: Required[str]
37-
"""The output of the code execution."""
37+
"""Required. The output of the code execution."""
3838

3939
type: Required[Literal["code_execution_result"]]
4040

google/genai/_interactions/types/content_delta.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -327,9 +327,9 @@ class DeltaFileSearchResult(BaseModel):
327327
call_id: str
328328
"""ID to match the ID from the function call block."""
329329

330-
type: Literal["file_search_result"]
330+
result: List[object]
331331

332-
result: Optional[List[object]] = None
332+
type: Literal["file_search_result"]
333333

334334
signature: Optional[str] = None
335335
"""A signature hash for backend validation."""
@@ -339,11 +339,11 @@ class DeltaGoogleMapsResult(BaseModel):
339339
call_id: str
340340
"""ID to match the ID from the function call block."""
341341

342-
result: List[GoogleMapsResult]
343-
"""The results of the Google Maps."""
344-
345342
type: Literal["google_maps_result"]
346343

344+
result: Optional[List[GoogleMapsResult]] = None
345+
"""The results of the Google Maps."""
346+
347347
signature: Optional[str] = None
348348
"""A signature hash for backend validation."""
349349

google/genai/_interactions/types/file_search_result_content.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ class FileSearchResultContent(BaseModel):
2929
call_id: str
3030
"""ID to match the ID from the file search call block."""
3131

32-
type: Literal["file_search_result"]
32+
result: List[object]
33+
"""Required. The results of the File Search."""
3334

34-
result: Optional[List[object]] = None
35-
"""The results of the File Search."""
35+
type: Literal["file_search_result"]
3636

3737
signature: Optional[str] = None
3838
"""A signature hash for backend validation."""

google/genai/_interactions/types/file_search_result_content_param.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ class FileSearchResultContentParam(TypedDict, total=False):
3333
call_id: Required[str]
3434
"""ID to match the ID from the file search call block."""
3535

36-
type: Required[Literal["file_search_result"]]
36+
result: Required[Iterable[object]]
37+
"""Required. The results of the File Search."""
3738

38-
result: Iterable[object]
39-
"""The results of the File Search."""
39+
type: Required[Literal["file_search_result"]]
4040

4141
signature: Annotated[Union[str, Base64FileInput], PropertyInfo(format="base64")]
4242
"""A signature hash for backend validation."""

google/genai/_interactions/types/function_call_content.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ class FunctionCallContent(BaseModel):
3030
"""A unique ID for this specific tool call."""
3131

3232
arguments: Dict[str, object]
33-
"""The arguments to pass to the function."""
33+
"""Required. The arguments to pass to the function."""
3434

3535
name: str
36-
"""The name of the tool to call."""
36+
"""Required. The name of the tool to call."""
3737

3838
type: Literal["function_call"]
3939

google/genai/_interactions/types/function_call_content_param.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ class FunctionCallContentParam(TypedDict, total=False):
3434
"""A unique ID for this specific tool call."""
3535

3636
arguments: Required[Dict[str, object]]
37-
"""The arguments to pass to the function."""
37+
"""Required. The arguments to pass to the function."""
3838

3939
name: Required[str]
40-
"""The name of the tool to call."""
40+
"""Required. The name of the tool to call."""
4141

4242
type: Required[Literal["function_call"]]
4343

google/genai/_interactions/types/google_maps_result_content.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class GoogleMapsResultContent(BaseModel):
3131
"""ID to match the ID from the google maps call block."""
3232

3333
result: List[GoogleMapsResult]
34-
"""The results of the Google Maps."""
34+
"""Required. The results of the Google Maps."""
3535

3636
type: Literal["google_maps_result"]
3737

0 commit comments

Comments
 (0)