Skip to content

Commit

Permalink
feat: Add retrieval_config to ToolConfig v1 (#28233)
Browse files Browse the repository at this point in the history
feat: Add Context Cache to v1
  • Loading branch information
gcf-owl-bot[bot] authored Jan 15, 2025
1 parent 4a0ff94 commit 27b478a
Show file tree
Hide file tree
Showing 36 changed files with 4,187 additions and 26 deletions.
21 changes: 21 additions & 0 deletions google-cloud-ai_platform-v1/.owlbot-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,13 @@
"lib/google/cloud/ai_platform/v1/featurestore_service/rest/client.rb",
"lib/google/cloud/ai_platform/v1/featurestore_service/rest/operations.rb",
"lib/google/cloud/ai_platform/v1/featurestore_service/rest/service_stub.rb",
"lib/google/cloud/ai_platform/v1/gen_ai_cache_service.rb",
"lib/google/cloud/ai_platform/v1/gen_ai_cache_service/client.rb",
"lib/google/cloud/ai_platform/v1/gen_ai_cache_service/credentials.rb",
"lib/google/cloud/ai_platform/v1/gen_ai_cache_service/paths.rb",
"lib/google/cloud/ai_platform/v1/gen_ai_cache_service/rest.rb",
"lib/google/cloud/ai_platform/v1/gen_ai_cache_service/rest/client.rb",
"lib/google/cloud/ai_platform/v1/gen_ai_cache_service/rest/service_stub.rb",
"lib/google/cloud/ai_platform/v1/gen_ai_tuning_service.rb",
"lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/client.rb",
"lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/credentials.rb",
Expand Down Expand Up @@ -269,6 +276,7 @@
"lib/google/cloud/aiplatform/v1/api_auth_pb.rb",
"lib/google/cloud/aiplatform/v1/artifact_pb.rb",
"lib/google/cloud/aiplatform/v1/batch_prediction_job_pb.rb",
"lib/google/cloud/aiplatform/v1/cached_content_pb.rb",
"lib/google/cloud/aiplatform/v1/completion_stats_pb.rb",
"lib/google/cloud/aiplatform/v1/content_pb.rb",
"lib/google/cloud/aiplatform/v1/context_pb.rb",
Expand Down Expand Up @@ -316,6 +324,8 @@
"lib/google/cloud/aiplatform/v1/featurestore_pb.rb",
"lib/google/cloud/aiplatform/v1/featurestore_service_pb.rb",
"lib/google/cloud/aiplatform/v1/featurestore_service_services_pb.rb",
"lib/google/cloud/aiplatform/v1/gen_ai_cache_service_pb.rb",
"lib/google/cloud/aiplatform/v1/gen_ai_cache_service_services_pb.rb",
"lib/google/cloud/aiplatform/v1/genai_tuning_service_pb.rb",
"lib/google/cloud/aiplatform/v1/genai_tuning_service_services_pb.rb",
"lib/google/cloud/aiplatform/v1/hyperparameter_tuning_job_pb.rb",
Expand Down Expand Up @@ -417,6 +427,7 @@
"proto_docs/google/cloud/aiplatform/v1/api_auth.rb",
"proto_docs/google/cloud/aiplatform/v1/artifact.rb",
"proto_docs/google/cloud/aiplatform/v1/batch_prediction_job.rb",
"proto_docs/google/cloud/aiplatform/v1/cached_content.rb",
"proto_docs/google/cloud/aiplatform/v1/completion_stats.rb",
"proto_docs/google/cloud/aiplatform/v1/content.rb",
"proto_docs/google/cloud/aiplatform/v1/context.rb",
Expand Down Expand Up @@ -455,6 +466,7 @@
"proto_docs/google/cloud/aiplatform/v1/featurestore_monitoring.rb",
"proto_docs/google/cloud/aiplatform/v1/featurestore_online_service.rb",
"proto_docs/google/cloud/aiplatform/v1/featurestore_service.rb",
"proto_docs/google/cloud/aiplatform/v1/gen_ai_cache_service.rb",
"proto_docs/google/cloud/aiplatform/v1/genai_tuning_service.rb",
"proto_docs/google/cloud/aiplatform/v1/hyperparameter_tuning_job.rb",
"proto_docs/google/cloud/aiplatform/v1/index.rb",
Expand Down Expand Up @@ -572,6 +584,7 @@
"proto_docs/google/type/date.rb",
"proto_docs/google/type/expr.rb",
"proto_docs/google/type/interval.rb",
"proto_docs/google/type/latlng.rb",
"proto_docs/google/type/money.rb",
"snippets/Gemfile",
"snippets/dataset_service/create_dataset.rb",
Expand Down Expand Up @@ -659,6 +672,11 @@
"snippets/featurestore_service/update_entity_type.rb",
"snippets/featurestore_service/update_feature.rb",
"snippets/featurestore_service/update_featurestore.rb",
"snippets/gen_ai_cache_service/create_cached_content.rb",
"snippets/gen_ai_cache_service/delete_cached_content.rb",
"snippets/gen_ai_cache_service/get_cached_content.rb",
"snippets/gen_ai_cache_service/list_cached_contents.rb",
"snippets/gen_ai_cache_service/update_cached_content.rb",
"snippets/gen_ai_tuning_service/cancel_tuning_job.rb",
"snippets/gen_ai_tuning_service/create_tuning_job.rb",
"snippets/gen_ai_tuning_service/get_tuning_job.rb",
Expand Down Expand Up @@ -922,6 +940,9 @@
"test/google/cloud/ai_platform/v1/featurestore_service_paths_test.rb",
"test/google/cloud/ai_platform/v1/featurestore_service_rest_test.rb",
"test/google/cloud/ai_platform/v1/featurestore_service_test.rb",
"test/google/cloud/ai_platform/v1/gen_ai_cache_service_paths_test.rb",
"test/google/cloud/ai_platform/v1/gen_ai_cache_service_rest_test.rb",
"test/google/cloud/ai_platform/v1/gen_ai_cache_service_test.rb",
"test/google/cloud/ai_platform/v1/gen_ai_tuning_service_operations_test.rb",
"test/google/cloud/ai_platform/v1/gen_ai_tuning_service_paths_test.rb",
"test/google/cloud/ai_platform/v1/gen_ai_tuning_service_rest_test.rb",
Expand Down
34 changes: 34 additions & 0 deletions google-cloud-ai_platform-v1/gapic_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,40 @@
}
}
},
"GenAiCacheService": {
"clients": {
"grpc": {
"libraryClient": "::Google::Cloud::AIPlatform::V1::GenAiCacheService::Client",
"rpcs": {
"CreateCachedContent": {
"methods": [
"create_cached_content"
]
},
"GetCachedContent": {
"methods": [
"get_cached_content"
]
},
"UpdateCachedContent": {
"methods": [
"update_cached_content"
]
},
"DeleteCachedContent": {
"methods": [
"delete_cached_content"
]
},
"ListCachedContents": {
"methods": [
"list_cached_contents"
]
}
}
}
}
},
"GenAiTuningService": {
"clients": {
"grpc": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
require "google/cloud/ai_platform/v1/feature_online_store_service"
require "google/cloud/ai_platform/v1/featurestore_service"
require "google/cloud/ai_platform/v1/feature_registry_service"
require "google/cloud/ai_platform/v1/gen_ai_cache_service"
require "google/cloud/ai_platform/v1/gen_ai_tuning_service"
require "google/cloud/ai_platform/v1/index_endpoint_service"
require "google/cloud/ai_platform/v1/index_service"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# frozen_string_literal: true

# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Auto-generated by gapic-generator-ruby. DO NOT EDIT!

require "gapic/common"
require "gapic/config"
require "gapic/config/method"

require "google/cloud/ai_platform/v1/version"

require "google/cloud/ai_platform/v1/gen_ai_cache_service/credentials"
require "google/cloud/ai_platform/v1/gen_ai_cache_service/paths"
require "google/cloud/ai_platform/v1/gen_ai_cache_service/client"
require "google/cloud/ai_platform/v1/gen_ai_cache_service/rest"

module Google
module Cloud
module AIPlatform
module V1
##
# Service for managing Vertex AI's CachedContent resource.
#
# @example Load this service and instantiate a gRPC client
#
# require "google/cloud/ai_platform/v1/gen_ai_cache_service"
# client = ::Google::Cloud::AIPlatform::V1::GenAiCacheService::Client.new
#
# @example Load this service and instantiate a REST client
#
# require "google/cloud/ai_platform/v1/gen_ai_cache_service/rest"
# client = ::Google::Cloud::AIPlatform::V1::GenAiCacheService::Rest::Client.new
#
module GenAiCacheService
end
end
end
end
end

helper_path = ::File.join __dir__, "gen_ai_cache_service", "helpers.rb"
require "google/cloud/ai_platform/v1/gen_ai_cache_service/helpers" if ::File.file? helper_path
Loading

0 comments on commit 27b478a

Please sign in to comment.