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
32 changes: 32 additions & 0 deletions google/cloud/aiplatform_v1/types/tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,11 @@ class Tool(proto.Message):
user queries. The search results will be
grounded on Parallel.ai and presented to the
model for response generation
exa_ai_search (google.cloud.aiplatform_v1.types.Tool.ExaAiSearch):
Optional. Uses Exa.ai to search for
information to answer user queries. The search
results will be grounded on Exa.ai and presented
to the model for response generation
code_execution (google.cloud.aiplatform_v1.types.Tool.CodeExecution):
Optional. CodeExecution tool type.
Enables the model to execute code as part of
Expand Down Expand Up @@ -222,6 +227,28 @@ class ParallelAiSearch(proto.Message):
message=struct_pb2.Struct,
)

class ExaAiSearch(proto.Message):
r"""ExaAiSearch tool type.
A tool that uses the Exa.ai search engine for grounding.

Attributes:
api_key (str):
Required. The API key for ExaAiSearch.
custom_configs (google.protobuf.struct_pb2.Struct):
Optional. This field can be used to pass any
parameter from the Exa.ai Search API.
"""

api_key: str = proto.Field(
proto.STRING,
number=1,
)
custom_configs: struct_pb2.Struct = proto.Field(
proto.MESSAGE,
number=2,
message=struct_pb2.Struct,
)

class CodeExecution(proto.Message):
r"""Tool that executes code generated by the model, and automatically
returns the result to the model.
Expand Down Expand Up @@ -308,6 +335,11 @@ class Environment(proto.Enum):
number=13,
message=ParallelAiSearch,
)
exa_ai_search: ExaAiSearch = proto.Field(
proto.MESSAGE,
number=15,
message=ExaAiSearch,
)
code_execution: CodeExecution = proto.Field(
proto.MESSAGE,
number=4,
Expand Down
10 changes: 10 additions & 0 deletions google/cloud/aiplatform_v1beta1/types/batch_prediction_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,12 @@ class BatchPredictionJob(proto.Message):
prediction without requiring uploading to model registry.
Exactly one of model and unmanaged_container_model must be
set.
endpoint (str):
For Bring-Your-Own-Endpoint (BYOE), the name of the Endpoint
resource that produces the predictions via this job, must
share the same ancestor Location. Exactly one of model,
unmanaged_container_model, or endpoint must be set. Example:
``projects/193595526740/locations/us-central1/endpoints/4203439000301600768``
input_config (google.cloud.aiplatform_v1beta1.types.BatchPredictionJob.InputConfig):
Required. Input configuration of the instances on which
predictions are performed. The schema of any single instance
Expand Down Expand Up @@ -637,6 +643,10 @@ class OutputInfo(proto.Message):
message=gca_unmanaged_container_model.UnmanagedContainerModel,
)
)
endpoint: str = proto.Field(
proto.STRING,
number=41,
)
input_config: InputConfig = proto.Field(
proto.MESSAGE,
number=4,
Expand Down
32 changes: 32 additions & 0 deletions google/cloud/aiplatform_v1beta1/types/tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,11 @@ class Tool(proto.Message):
user queries. The search results will be
grounded on Parallel.ai and presented to the
model for response generation
exa_ai_search (google.cloud.aiplatform_v1beta1.types.Tool.ExaAiSearch):
Optional. Uses Exa.ai to search for
information to answer user queries. The search
results will be grounded on Exa.ai and presented
to the model for response generation
code_execution (google.cloud.aiplatform_v1beta1.types.Tool.CodeExecution):
Optional. CodeExecution tool type.
Enables the model to execute code as part of
Expand Down Expand Up @@ -223,6 +228,28 @@ class ParallelAiSearch(proto.Message):
message=struct_pb2.Struct,
)

class ExaAiSearch(proto.Message):
r"""ExaAiSearch tool type.
A tool that uses the Exa.ai search engine for grounding.

Attributes:
api_key (str):
Required. The API key for ExaAiSearch.
custom_configs (google.protobuf.struct_pb2.Struct):
Optional. This field can be used to pass any
parameter from the Exa.ai Search API.
"""

api_key: str = proto.Field(
proto.STRING,
number=1,
)
custom_configs: struct_pb2.Struct = proto.Field(
proto.MESSAGE,
number=2,
message=struct_pb2.Struct,
)

class CodeExecution(proto.Message):
r"""Tool that executes code generated by the model, and automatically
returns the result to the model.
Expand Down Expand Up @@ -309,6 +336,11 @@ class Environment(proto.Enum):
number=13,
message=ParallelAiSearch,
)
exa_ai_search: ExaAiSearch = proto.Field(
proto.MESSAGE,
number=15,
message=ExaAiSearch,
)
code_execution: CodeExecution = proto.Field(
proto.MESSAGE,
number=4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"language": "PYTHON",
"name": "google-cloud-aiplatform",
"version": "1.163.0"
"version": "0.0.0"
},
"snippets": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"language": "PYTHON",
"name": "google-cloud-aiplatform",
"version": "1.163.0"
"version": "0.0.0"
},
"snippets": [
{
Expand Down
8 changes: 4 additions & 4 deletions tests/unit/gapic/aiplatform_v1/test_gen_ai_cache_service.py

Large diffs are not rendered by default.

Large diffs are not rendered by default.

22 changes: 20 additions & 2 deletions tests/unit/gapic/aiplatform_v1beta1/test_job_service.py

Large diffs are not rendered by default.

Loading