Add loan-advisor-agent (part 8)
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +1 -0
- loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/__pycache__/text_content_param.cpython-312.pyc +0 -0
- loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/__pycache__/thinking_level.cpython-312.pyc +0 -0
- loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/__pycache__/thought_content.cpython-312.pyc +0 -0
- loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/__pycache__/thought_content_param.cpython-312.pyc +0 -0
- loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/__pycache__/tool.cpython-312.pyc +0 -0
- loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/__pycache__/tool_choice_config.cpython-312.pyc +0 -0
- loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/__pycache__/tool_choice_config_param.cpython-312.pyc +0 -0
- loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/__pycache__/tool_choice_type.cpython-312.pyc +0 -0
- loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/__pycache__/tool_param.cpython-312.pyc +0 -0
- loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/__pycache__/turn.cpython-312.pyc +0 -0
- loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/__pycache__/turn_param.cpython-312.pyc +0 -0
- loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/__pycache__/url_citation.cpython-312.pyc +0 -0
- loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/__pycache__/url_citation_param.cpython-312.pyc +0 -0
- loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/__pycache__/url_context_call_arguments.cpython-312.pyc +0 -0
- loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/__pycache__/url_context_call_arguments_param.cpython-312.pyc +0 -0
- loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/__pycache__/url_context_call_content.cpython-312.pyc +0 -0
- loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/__pycache__/url_context_call_content_param.cpython-312.pyc +0 -0
- loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/__pycache__/url_context_result.cpython-312.pyc +0 -0
- loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/__pycache__/url_context_result_content.cpython-312.pyc +0 -0
- loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/__pycache__/url_context_result_content_param.cpython-312.pyc +0 -0
- loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/__pycache__/url_context_result_param.cpython-312.pyc +0 -0
- loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/__pycache__/usage.cpython-312.pyc +0 -0
- loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/__pycache__/usage_param.cpython-312.pyc +0 -0
- loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/__pycache__/video_content.cpython-312.pyc +0 -0
- loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/__pycache__/video_content_param.cpython-312.pyc +0 -0
- loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/__pycache__/webhook.cpython-312.pyc +0 -0
- loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/__pycache__/webhook_config.cpython-312.pyc +0 -0
- loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/__pycache__/webhook_config_param.cpython-312.pyc +0 -0
- loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/__pycache__/webhook_create_params.cpython-312.pyc +0 -0
- loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/__pycache__/webhook_delete_response.cpython-312.pyc +0 -0
- loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/__pycache__/webhook_list_params.cpython-312.pyc +0 -0
- loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/__pycache__/webhook_list_response.cpython-312.pyc +0 -0
- loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/__pycache__/webhook_ping_params.cpython-312.pyc +0 -0
- loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/__pycache__/webhook_ping_response.cpython-312.pyc +0 -0
- loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/__pycache__/webhook_rotate_signing_secret_params.cpython-312.pyc +0 -0
- loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/__pycache__/webhook_rotate_signing_secret_response.cpython-312.pyc +0 -0
- loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/__pycache__/webhook_update_params.cpython-312.pyc +0 -0
- loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/allowed_tools.py +33 -0
- loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/allowed_tools_param.py +35 -0
- loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/annotation.py +28 -0
- loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/annotation_param.py +29 -0
- loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/audio_content.py +59 -0
- loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/audio_content_param.py +64 -0
- loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/code_execution_call_arguments.py +33 -0
- loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/code_execution_call_arguments_param.py +32 -0
- loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/code_execution_call_content.py +39 -0
- loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/code_execution_call_content_param.py +46 -0
- loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/code_execution_result_content.py +41 -0
- loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/code_execution_result_content_param.py +48 -0
.gitattributes
CHANGED
|
@@ -428,3 +428,4 @@ loan-advisor-agent/.venv/Lib/site-packages/google/cloud/storage/__pycache__/blob
|
|
| 428 |
loan-advisor-agent/.venv/Lib/site-packages/google/cloud/storage/__pycache__/bucket.cpython-312.pyc filter=lfs diff=lfs merge=lfs -text
|
| 429 |
loan-advisor-agent/.venv/Lib/site-packages/google/genai/__pycache__/models.cpython-312.pyc filter=lfs diff=lfs merge=lfs -text
|
| 430 |
loan-advisor-agent/.venv/Lib/site-packages/google/genai/__pycache__/types.cpython-312.pyc filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 428 |
loan-advisor-agent/.venv/Lib/site-packages/google/cloud/storage/__pycache__/bucket.cpython-312.pyc filter=lfs diff=lfs merge=lfs -text
|
| 429 |
loan-advisor-agent/.venv/Lib/site-packages/google/genai/__pycache__/models.cpython-312.pyc filter=lfs diff=lfs merge=lfs -text
|
| 430 |
loan-advisor-agent/.venv/Lib/site-packages/google/genai/__pycache__/types.cpython-312.pyc filter=lfs diff=lfs merge=lfs -text
|
| 431 |
+
loan-advisor-agent/.venv/Lib/site-packages/google/protobuf/__pycache__/descriptor_pb2.cpython-312.pyc filter=lfs diff=lfs merge=lfs -text
|
loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/__pycache__/text_content_param.cpython-312.pyc
ADDED
|
Binary file (885 Bytes). View file
|
|
|
loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/__pycache__/thinking_level.cpython-312.pyc
ADDED
|
Binary file (420 Bytes). View file
|
|
|
loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/__pycache__/thought_content.cpython-312.pyc
ADDED
|
Binary file (1.16 kB). View file
|
|
|
loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/__pycache__/thought_content_param.cpython-312.pyc
ADDED
|
Binary file (1.37 kB). View file
|
|
|
loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/__pycache__/tool.cpython-312.pyc
ADDED
|
Binary file (4.79 kB). View file
|
|
|
loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/__pycache__/tool_choice_config.cpython-312.pyc
ADDED
|
Binary file (721 Bytes). View file
|
|
|
loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/__pycache__/tool_choice_config_param.cpython-312.pyc
ADDED
|
Binary file (752 Bytes). View file
|
|
|
loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/__pycache__/tool_choice_type.cpython-312.pyc
ADDED
|
Binary file (423 Bytes). View file
|
|
|
loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/__pycache__/tool_param.cpython-312.pyc
ADDED
|
Binary file (4.28 kB). View file
|
|
|
loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/__pycache__/turn.cpython-312.pyc
ADDED
|
Binary file (729 Bytes). View file
|
|
|
loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/__pycache__/turn_param.cpython-312.pyc
ADDED
|
Binary file (750 Bytes). View file
|
|
|
loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/__pycache__/url_citation.cpython-312.pyc
ADDED
|
Binary file (897 Bytes). View file
|
|
|
loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/__pycache__/url_citation_param.cpython-312.pyc
ADDED
|
Binary file (832 Bytes). View file
|
|
|
loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/__pycache__/url_context_call_arguments.cpython-312.pyc
ADDED
|
Binary file (697 Bytes). View file
|
|
|
loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/__pycache__/url_context_call_arguments_param.cpython-312.pyc
ADDED
|
Binary file (744 Bytes). View file
|
|
|
loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/__pycache__/url_context_call_content.cpython-312.pyc
ADDED
|
Binary file (894 Bytes). View file
|
|
|
loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/__pycache__/url_context_call_content_param.cpython-312.pyc
ADDED
|
Binary file (1.3 kB). View file
|
|
|
loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/__pycache__/url_context_result.cpython-312.pyc
ADDED
|
Binary file (794 Bytes). View file
|
|
|
loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/__pycache__/url_context_result_content.cpython-312.pyc
ADDED
|
Binary file (971 Bytes). View file
|
|
|
loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/__pycache__/url_context_result_content_param.cpython-312.pyc
ADDED
|
Binary file (1.36 kB). View file
|
|
|
loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/__pycache__/url_context_result_param.cpython-312.pyc
ADDED
|
Binary file (746 Bytes). View file
|
|
|
loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/__pycache__/usage.cpython-312.pyc
ADDED
|
Binary file (2.53 kB). View file
|
|
|
loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/__pycache__/usage_param.cpython-312.pyc
ADDED
|
Binary file (2.26 kB). View file
|
|
|
loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/__pycache__/video_content.cpython-312.pyc
ADDED
|
Binary file (1.06 kB). View file
|
|
|
loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/__pycache__/video_content_param.cpython-312.pyc
ADDED
|
Binary file (1.34 kB). View file
|
|
|
loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/__pycache__/webhook.cpython-312.pyc
ADDED
|
Binary file (1.49 kB). View file
|
|
|
loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/__pycache__/webhook_config.cpython-312.pyc
ADDED
|
Binary file (803 Bytes). View file
|
|
|
loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/__pycache__/webhook_config_param.cpython-312.pyc
ADDED
|
Binary file (831 Bytes). View file
|
|
|
loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/__pycache__/webhook_create_params.cpython-312.pyc
ADDED
|
Binary file (1.17 kB). View file
|
|
|
loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/__pycache__/webhook_delete_response.cpython-312.pyc
ADDED
|
Binary file (833 Bytes). View file
|
|
|
loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/__pycache__/webhook_list_params.cpython-312.pyc
ADDED
|
Binary file (670 Bytes). View file
|
|
|
loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/__pycache__/webhook_list_response.cpython-312.pyc
ADDED
|
Binary file (815 Bytes). View file
|
|
|
loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/__pycache__/webhook_ping_params.cpython-312.pyc
ADDED
|
Binary file (854 Bytes). View file
|
|
|
loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/__pycache__/webhook_ping_response.cpython-312.pyc
ADDED
|
Binary file (545 Bytes). View file
|
|
|
loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/__pycache__/webhook_rotate_signing_secret_params.cpython-312.pyc
ADDED
|
Binary file (775 Bytes). View file
|
|
|
loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/__pycache__/webhook_rotate_signing_secret_response.cpython-312.pyc
ADDED
|
Binary file (706 Bytes). View file
|
|
|
loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/__pycache__/webhook_update_params.cpython-312.pyc
ADDED
|
Binary file (1.17 kB). View file
|
|
|
loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/allowed_tools.py
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright 2025 Google LLC
|
| 2 |
+
#
|
| 3 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
| 4 |
+
# you may not use this file except in compliance with the License.
|
| 5 |
+
# You may obtain a copy of the License at
|
| 6 |
+
#
|
| 7 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 8 |
+
#
|
| 9 |
+
# Unless required by applicable law or agreed to in writing, software
|
| 10 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
| 11 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 12 |
+
# See the License for the specific language governing permissions and
|
| 13 |
+
# limitations under the License.
|
| 14 |
+
#
|
| 15 |
+
|
| 16 |
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
| 17 |
+
|
| 18 |
+
from typing import List, Optional
|
| 19 |
+
|
| 20 |
+
from .._models import BaseModel
|
| 21 |
+
from .tool_choice_type import ToolChoiceType
|
| 22 |
+
|
| 23 |
+
__all__ = ["AllowedTools"]
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
class AllowedTools(BaseModel):
|
| 27 |
+
"""The configuration for allowed tools."""
|
| 28 |
+
|
| 29 |
+
mode: Optional[ToolChoiceType] = None
|
| 30 |
+
"""The mode of the tool choice."""
|
| 31 |
+
|
| 32 |
+
tools: Optional[List[str]] = None
|
| 33 |
+
"""The names of the allowed tools."""
|
loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/allowed_tools_param.py
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright 2025 Google LLC
|
| 2 |
+
#
|
| 3 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
| 4 |
+
# you may not use this file except in compliance with the License.
|
| 5 |
+
# You may obtain a copy of the License at
|
| 6 |
+
#
|
| 7 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 8 |
+
#
|
| 9 |
+
# Unless required by applicable law or agreed to in writing, software
|
| 10 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
| 11 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 12 |
+
# See the License for the specific language governing permissions and
|
| 13 |
+
# limitations under the License.
|
| 14 |
+
#
|
| 15 |
+
|
| 16 |
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
| 17 |
+
|
| 18 |
+
from __future__ import annotations
|
| 19 |
+
|
| 20 |
+
from typing_extensions import TypedDict
|
| 21 |
+
|
| 22 |
+
from .._types import SequenceNotStr
|
| 23 |
+
from .tool_choice_type import ToolChoiceType
|
| 24 |
+
|
| 25 |
+
__all__ = ["AllowedToolsParam"]
|
| 26 |
+
|
| 27 |
+
|
| 28 |
+
class AllowedToolsParam(TypedDict, total=False):
|
| 29 |
+
"""The configuration for allowed tools."""
|
| 30 |
+
|
| 31 |
+
mode: ToolChoiceType
|
| 32 |
+
"""The mode of the tool choice."""
|
| 33 |
+
|
| 34 |
+
tools: SequenceNotStr[str]
|
| 35 |
+
"""The names of the allowed tools."""
|
loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/annotation.py
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright 2025 Google LLC
|
| 2 |
+
#
|
| 3 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
| 4 |
+
# you may not use this file except in compliance with the License.
|
| 5 |
+
# You may obtain a copy of the License at
|
| 6 |
+
#
|
| 7 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 8 |
+
#
|
| 9 |
+
# Unless required by applicable law or agreed to in writing, software
|
| 10 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
| 11 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 12 |
+
# See the License for the specific language governing permissions and
|
| 13 |
+
# limitations under the License.
|
| 14 |
+
#
|
| 15 |
+
|
| 16 |
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
| 17 |
+
|
| 18 |
+
from typing import Union
|
| 19 |
+
from typing_extensions import Annotated, TypeAlias
|
| 20 |
+
|
| 21 |
+
from .._utils import PropertyInfo
|
| 22 |
+
from .url_citation import URLCitation
|
| 23 |
+
from .file_citation import FileCitation
|
| 24 |
+
from .place_citation import PlaceCitation
|
| 25 |
+
|
| 26 |
+
__all__ = ["Annotation"]
|
| 27 |
+
|
| 28 |
+
Annotation: TypeAlias = Annotated[Union[URLCitation, FileCitation, PlaceCitation], PropertyInfo(discriminator="type")]
|
loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/annotation_param.py
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright 2025 Google LLC
|
| 2 |
+
#
|
| 3 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
| 4 |
+
# you may not use this file except in compliance with the License.
|
| 5 |
+
# You may obtain a copy of the License at
|
| 6 |
+
#
|
| 7 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 8 |
+
#
|
| 9 |
+
# Unless required by applicable law or agreed to in writing, software
|
| 10 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
| 11 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 12 |
+
# See the License for the specific language governing permissions and
|
| 13 |
+
# limitations under the License.
|
| 14 |
+
#
|
| 15 |
+
|
| 16 |
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
| 17 |
+
|
| 18 |
+
from __future__ import annotations
|
| 19 |
+
|
| 20 |
+
from typing import Union
|
| 21 |
+
from typing_extensions import TypeAlias
|
| 22 |
+
|
| 23 |
+
from .url_citation_param import URLCitationParam
|
| 24 |
+
from .file_citation_param import FileCitationParam
|
| 25 |
+
from .place_citation_param import PlaceCitationParam
|
| 26 |
+
|
| 27 |
+
__all__ = ["AnnotationParam"]
|
| 28 |
+
|
| 29 |
+
AnnotationParam: TypeAlias = Union[URLCitationParam, FileCitationParam, PlaceCitationParam]
|
loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/audio_content.py
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright 2025 Google LLC
|
| 2 |
+
#
|
| 3 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
| 4 |
+
# you may not use this file except in compliance with the License.
|
| 5 |
+
# You may obtain a copy of the License at
|
| 6 |
+
#
|
| 7 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 8 |
+
#
|
| 9 |
+
# Unless required by applicable law or agreed to in writing, software
|
| 10 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
| 11 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 12 |
+
# See the License for the specific language governing permissions and
|
| 13 |
+
# limitations under the License.
|
| 14 |
+
#
|
| 15 |
+
|
| 16 |
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
| 17 |
+
|
| 18 |
+
from typing import Optional
|
| 19 |
+
from typing_extensions import Literal
|
| 20 |
+
|
| 21 |
+
from .._models import BaseModel
|
| 22 |
+
|
| 23 |
+
__all__ = ["AudioContent"]
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
class AudioContent(BaseModel):
|
| 27 |
+
"""An audio content block."""
|
| 28 |
+
|
| 29 |
+
type: Literal["audio"]
|
| 30 |
+
|
| 31 |
+
channels: Optional[int] = None
|
| 32 |
+
"""The number of audio channels."""
|
| 33 |
+
|
| 34 |
+
data: Optional[str] = None
|
| 35 |
+
"""The audio content."""
|
| 36 |
+
|
| 37 |
+
mime_type: Optional[
|
| 38 |
+
Literal[
|
| 39 |
+
"audio/wav",
|
| 40 |
+
"audio/mp3",
|
| 41 |
+
"audio/aiff",
|
| 42 |
+
"audio/aac",
|
| 43 |
+
"audio/ogg",
|
| 44 |
+
"audio/flac",
|
| 45 |
+
"audio/mpeg",
|
| 46 |
+
"audio/m4a",
|
| 47 |
+
"audio/l16",
|
| 48 |
+
"audio/opus",
|
| 49 |
+
"audio/alaw",
|
| 50 |
+
"audio/mulaw",
|
| 51 |
+
]
|
| 52 |
+
] = None
|
| 53 |
+
"""The mime type of the audio."""
|
| 54 |
+
|
| 55 |
+
rate: Optional[int] = None
|
| 56 |
+
"""The sample rate of the audio."""
|
| 57 |
+
|
| 58 |
+
uri: Optional[str] = None
|
| 59 |
+
"""The URI of the audio."""
|
loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/audio_content_param.py
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright 2025 Google LLC
|
| 2 |
+
#
|
| 3 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
| 4 |
+
# you may not use this file except in compliance with the License.
|
| 5 |
+
# You may obtain a copy of the License at
|
| 6 |
+
#
|
| 7 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 8 |
+
#
|
| 9 |
+
# Unless required by applicable law or agreed to in writing, software
|
| 10 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
| 11 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 12 |
+
# See the License for the specific language governing permissions and
|
| 13 |
+
# limitations under the License.
|
| 14 |
+
#
|
| 15 |
+
|
| 16 |
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
| 17 |
+
|
| 18 |
+
from __future__ import annotations
|
| 19 |
+
|
| 20 |
+
from typing import Union
|
| 21 |
+
from typing_extensions import Literal, Required, Annotated, TypedDict
|
| 22 |
+
|
| 23 |
+
from .._types import Base64FileInput
|
| 24 |
+
from .._utils import PropertyInfo
|
| 25 |
+
from .._models import set_pydantic_config
|
| 26 |
+
|
| 27 |
+
__all__ = ["AudioContentParam"]
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
class AudioContentParam(TypedDict, total=False):
|
| 31 |
+
"""An audio content block."""
|
| 32 |
+
|
| 33 |
+
type: Required[Literal["audio"]]
|
| 34 |
+
|
| 35 |
+
channels: int
|
| 36 |
+
"""The number of audio channels."""
|
| 37 |
+
|
| 38 |
+
data: Annotated[Union[str, Base64FileInput], PropertyInfo(format="base64")]
|
| 39 |
+
"""The audio content."""
|
| 40 |
+
|
| 41 |
+
mime_type: Literal[
|
| 42 |
+
"audio/wav",
|
| 43 |
+
"audio/mp3",
|
| 44 |
+
"audio/aiff",
|
| 45 |
+
"audio/aac",
|
| 46 |
+
"audio/ogg",
|
| 47 |
+
"audio/flac",
|
| 48 |
+
"audio/mpeg",
|
| 49 |
+
"audio/m4a",
|
| 50 |
+
"audio/l16",
|
| 51 |
+
"audio/opus",
|
| 52 |
+
"audio/alaw",
|
| 53 |
+
"audio/mulaw",
|
| 54 |
+
]
|
| 55 |
+
"""The mime type of the audio."""
|
| 56 |
+
|
| 57 |
+
rate: int
|
| 58 |
+
"""The sample rate of the audio."""
|
| 59 |
+
|
| 60 |
+
uri: str
|
| 61 |
+
"""The URI of the audio."""
|
| 62 |
+
|
| 63 |
+
|
| 64 |
+
set_pydantic_config(AudioContentParam, {"arbitrary_types_allowed": True})
|
loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/code_execution_call_arguments.py
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright 2025 Google LLC
|
| 2 |
+
#
|
| 3 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
| 4 |
+
# you may not use this file except in compliance with the License.
|
| 5 |
+
# You may obtain a copy of the License at
|
| 6 |
+
#
|
| 7 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 8 |
+
#
|
| 9 |
+
# Unless required by applicable law or agreed to in writing, software
|
| 10 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
| 11 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 12 |
+
# See the License for the specific language governing permissions and
|
| 13 |
+
# limitations under the License.
|
| 14 |
+
#
|
| 15 |
+
|
| 16 |
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
| 17 |
+
|
| 18 |
+
from typing import Optional
|
| 19 |
+
from typing_extensions import Literal
|
| 20 |
+
|
| 21 |
+
from .._models import BaseModel
|
| 22 |
+
|
| 23 |
+
__all__ = ["CodeExecutionCallArguments"]
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
class CodeExecutionCallArguments(BaseModel):
|
| 27 |
+
"""The arguments to pass to the code execution."""
|
| 28 |
+
|
| 29 |
+
code: Optional[str] = None
|
| 30 |
+
"""The code to be executed."""
|
| 31 |
+
|
| 32 |
+
language: Optional[Literal["python"]] = None
|
| 33 |
+
"""Programming language of the `code`."""
|
loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/code_execution_call_arguments_param.py
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright 2025 Google LLC
|
| 2 |
+
#
|
| 3 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
| 4 |
+
# you may not use this file except in compliance with the License.
|
| 5 |
+
# You may obtain a copy of the License at
|
| 6 |
+
#
|
| 7 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 8 |
+
#
|
| 9 |
+
# Unless required by applicable law or agreed to in writing, software
|
| 10 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
| 11 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 12 |
+
# See the License for the specific language governing permissions and
|
| 13 |
+
# limitations under the License.
|
| 14 |
+
#
|
| 15 |
+
|
| 16 |
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
| 17 |
+
|
| 18 |
+
from __future__ import annotations
|
| 19 |
+
|
| 20 |
+
from typing_extensions import Literal, TypedDict
|
| 21 |
+
|
| 22 |
+
__all__ = ["CodeExecutionCallArgumentsParam"]
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
class CodeExecutionCallArgumentsParam(TypedDict, total=False):
|
| 26 |
+
"""The arguments to pass to the code execution."""
|
| 27 |
+
|
| 28 |
+
code: str
|
| 29 |
+
"""The code to be executed."""
|
| 30 |
+
|
| 31 |
+
language: Literal["python"]
|
| 32 |
+
"""Programming language of the `code`."""
|
loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/code_execution_call_content.py
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright 2025 Google LLC
|
| 2 |
+
#
|
| 3 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
| 4 |
+
# you may not use this file except in compliance with the License.
|
| 5 |
+
# You may obtain a copy of the License at
|
| 6 |
+
#
|
| 7 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 8 |
+
#
|
| 9 |
+
# Unless required by applicable law or agreed to in writing, software
|
| 10 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
| 11 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 12 |
+
# See the License for the specific language governing permissions and
|
| 13 |
+
# limitations under the License.
|
| 14 |
+
#
|
| 15 |
+
|
| 16 |
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
| 17 |
+
|
| 18 |
+
from typing import Optional
|
| 19 |
+
from typing_extensions import Literal
|
| 20 |
+
|
| 21 |
+
from .._models import BaseModel
|
| 22 |
+
from .code_execution_call_arguments import CodeExecutionCallArguments
|
| 23 |
+
|
| 24 |
+
__all__ = ["CodeExecutionCallContent"]
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
class CodeExecutionCallContent(BaseModel):
|
| 28 |
+
"""Code execution content."""
|
| 29 |
+
|
| 30 |
+
id: str
|
| 31 |
+
"""Required. A unique ID for this specific tool call."""
|
| 32 |
+
|
| 33 |
+
arguments: CodeExecutionCallArguments
|
| 34 |
+
"""Required. The arguments to pass to the code execution."""
|
| 35 |
+
|
| 36 |
+
type: Literal["code_execution_call"]
|
| 37 |
+
|
| 38 |
+
signature: Optional[str] = None
|
| 39 |
+
"""A signature hash for backend validation."""
|
loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/code_execution_call_content_param.py
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright 2025 Google LLC
|
| 2 |
+
#
|
| 3 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
| 4 |
+
# you may not use this file except in compliance with the License.
|
| 5 |
+
# You may obtain a copy of the License at
|
| 6 |
+
#
|
| 7 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 8 |
+
#
|
| 9 |
+
# Unless required by applicable law or agreed to in writing, software
|
| 10 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
| 11 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 12 |
+
# See the License for the specific language governing permissions and
|
| 13 |
+
# limitations under the License.
|
| 14 |
+
#
|
| 15 |
+
|
| 16 |
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
| 17 |
+
|
| 18 |
+
from __future__ import annotations
|
| 19 |
+
|
| 20 |
+
from typing import Union
|
| 21 |
+
from typing_extensions import Literal, Required, Annotated, TypedDict
|
| 22 |
+
|
| 23 |
+
from .._types import Base64FileInput
|
| 24 |
+
from .._utils import PropertyInfo
|
| 25 |
+
from .._models import set_pydantic_config
|
| 26 |
+
from .code_execution_call_arguments_param import CodeExecutionCallArgumentsParam
|
| 27 |
+
|
| 28 |
+
__all__ = ["CodeExecutionCallContentParam"]
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
class CodeExecutionCallContentParam(TypedDict, total=False):
|
| 32 |
+
"""Code execution content."""
|
| 33 |
+
|
| 34 |
+
id: Required[str]
|
| 35 |
+
"""Required. A unique ID for this specific tool call."""
|
| 36 |
+
|
| 37 |
+
arguments: Required[CodeExecutionCallArgumentsParam]
|
| 38 |
+
"""Required. The arguments to pass to the code execution."""
|
| 39 |
+
|
| 40 |
+
type: Required[Literal["code_execution_call"]]
|
| 41 |
+
|
| 42 |
+
signature: Annotated[Union[str, Base64FileInput], PropertyInfo(format="base64")]
|
| 43 |
+
"""A signature hash for backend validation."""
|
| 44 |
+
|
| 45 |
+
|
| 46 |
+
set_pydantic_config(CodeExecutionCallContentParam, {"arbitrary_types_allowed": True})
|
loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/code_execution_result_content.py
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright 2025 Google LLC
|
| 2 |
+
#
|
| 3 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
| 4 |
+
# you may not use this file except in compliance with the License.
|
| 5 |
+
# You may obtain a copy of the License at
|
| 6 |
+
#
|
| 7 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 8 |
+
#
|
| 9 |
+
# Unless required by applicable law or agreed to in writing, software
|
| 10 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
| 11 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 12 |
+
# See the License for the specific language governing permissions and
|
| 13 |
+
# limitations under the License.
|
| 14 |
+
#
|
| 15 |
+
|
| 16 |
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
| 17 |
+
|
| 18 |
+
from typing import Optional
|
| 19 |
+
from typing_extensions import Literal
|
| 20 |
+
|
| 21 |
+
from .._models import BaseModel
|
| 22 |
+
|
| 23 |
+
__all__ = ["CodeExecutionResultContent"]
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
class CodeExecutionResultContent(BaseModel):
|
| 27 |
+
"""Code execution result content."""
|
| 28 |
+
|
| 29 |
+
call_id: str
|
| 30 |
+
"""Required. ID to match the ID from the function call block."""
|
| 31 |
+
|
| 32 |
+
result: str
|
| 33 |
+
"""Required. The output of the code execution."""
|
| 34 |
+
|
| 35 |
+
type: Literal["code_execution_result"]
|
| 36 |
+
|
| 37 |
+
is_error: Optional[bool] = None
|
| 38 |
+
"""Whether the code execution resulted in an error."""
|
| 39 |
+
|
| 40 |
+
signature: Optional[str] = None
|
| 41 |
+
"""A signature hash for backend validation."""
|
loan-advisor-agent/.venv/Lib/site-packages/google/genai/_interactions/types/code_execution_result_content_param.py
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright 2025 Google LLC
|
| 2 |
+
#
|
| 3 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
| 4 |
+
# you may not use this file except in compliance with the License.
|
| 5 |
+
# You may obtain a copy of the License at
|
| 6 |
+
#
|
| 7 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 8 |
+
#
|
| 9 |
+
# Unless required by applicable law or agreed to in writing, software
|
| 10 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
| 11 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 12 |
+
# See the License for the specific language governing permissions and
|
| 13 |
+
# limitations under the License.
|
| 14 |
+
#
|
| 15 |
+
|
| 16 |
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
| 17 |
+
|
| 18 |
+
from __future__ import annotations
|
| 19 |
+
|
| 20 |
+
from typing import Union
|
| 21 |
+
from typing_extensions import Literal, Required, Annotated, TypedDict
|
| 22 |
+
|
| 23 |
+
from .._types import Base64FileInput
|
| 24 |
+
from .._utils import PropertyInfo
|
| 25 |
+
from .._models import set_pydantic_config
|
| 26 |
+
|
| 27 |
+
__all__ = ["CodeExecutionResultContentParam"]
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
class CodeExecutionResultContentParam(TypedDict, total=False):
|
| 31 |
+
"""Code execution result content."""
|
| 32 |
+
|
| 33 |
+
call_id: Required[str]
|
| 34 |
+
"""Required. ID to match the ID from the function call block."""
|
| 35 |
+
|
| 36 |
+
result: Required[str]
|
| 37 |
+
"""Required. The output of the code execution."""
|
| 38 |
+
|
| 39 |
+
type: Required[Literal["code_execution_result"]]
|
| 40 |
+
|
| 41 |
+
is_error: bool
|
| 42 |
+
"""Whether the code execution resulted in an error."""
|
| 43 |
+
|
| 44 |
+
signature: Annotated[Union[str, Base64FileInput], PropertyInfo(format="base64")]
|
| 45 |
+
"""A signature hash for backend validation."""
|
| 46 |
+
|
| 47 |
+
|
| 48 |
+
set_pydantic_config(CodeExecutionResultContentParam, {"arbitrary_types_allowed": True})
|