GeezerVison is showing github.com — Copybara import of the project: · hamgor/python-aiplatform@2148b18
File treeExpand file treeCollapse file tree Open diff view settings services/migration_service
samples/generated_samples
Some content is hiddenLarge Commits have some content hidden by default. Use the searchbox below for content that may be hidden. Dismiss bannerExpand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboard +10Lines changed: 10 additions & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +GenAiCacheService | | 2 | +----------------------------------- | | 3 | + | | 4 | +.. automodule:: google.cloud.aiplatform_v1.services.gen_ai_cache_service | | 5 | + :members: | | 6 | + :inherited-members: | | 7 | + | | 8 | +.. automodule:: google.cloud.aiplatform_v1.services.gen_ai_cache_service.pagers | | 9 | + :members: | | 10 | + :inherited-members: |
Collapse file Copy file name to clipboardExpand all lines: docs/aiplatform_v1/services_.rst +1Lines changed: 1 addition & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -12,6 +12,7 @@ Services for Google Cloud Aiplatform v1 API | 12 | 12 | feature_registry_service | 13 | 13 | featurestore_online_serving_service | 14 | 14 | featurestore_service | | 15 | + gen_ai_cache_service | 15 | 16 | gen_ai_tuning_service | 16 | 17 | index_endpoint_service | 17 | 18 | index_service | |
Collapse file Copy file name to clipboardExpand all lines: google/cloud/aiplatform_v1/__init__.py +20Lines changed: 20 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 48 | 48 | ) | 49 | 49 | from .services.featurestore_service import FeaturestoreServiceClient | 50 | 50 | from .services.featurestore_service import FeaturestoreServiceAsyncClient | | 51 | +from .services.gen_ai_cache_service import GenAiCacheServiceClient | | 52 | +from .services.gen_ai_cache_service import GenAiCacheServiceAsyncClient | 51 | 53 | from .services.gen_ai_tuning_service import GenAiTuningServiceClient | 52 | 54 | from .services.gen_ai_tuning_service import GenAiTuningServiceAsyncClient | 53 | 55 | from .services.index_endpoint_service import IndexEndpointServiceClient | | 95 | 97 | from .types.api_auth import ApiAuth | 96 | 98 | from .types.artifact import Artifact | 97 | 99 | from .types.batch_prediction_job import BatchPredictionJob | | 100 | +from .types.cached_content import CachedContent | 98 | 101 | from .types.completion_stats import CompletionStats | 99 | 102 | from .types.content import Blob | 100 | 103 | from .types.content import Candidate | | 449 | 452 | from .types.featurestore_service import UpdateFeatureRequest | 450 | 453 | from .types.featurestore_service import UpdateFeaturestoreOperationMetadata | 451 | 454 | from .types.featurestore_service import UpdateFeaturestoreRequest | | 455 | +from .types.gen_ai_cache_service import CreateCachedContentRequest | | 456 | +from .types.gen_ai_cache_service import DeleteCachedContentRequest | | 457 | +from .types.gen_ai_cache_service import GetCachedContentRequest | | 458 | +from .types.gen_ai_cache_service import ListCachedContentsRequest | | 459 | +from .types.gen_ai_cache_service import ListCachedContentsResponse | | 460 | +from .types.gen_ai_cache_service import UpdateCachedContentRequest | 452 | 461 | from .types.genai_tuning_service import CancelTuningJobRequest | 453 | 462 | from .types.genai_tuning_service import CreateTuningJobRequest | 454 | 463 | from .types.genai_tuning_service import GetTuningJobRequest | | 897 | 906 | from .types.tool import GoogleSearchRetrieval | 898 | 907 | from .types.tool import RagRetrievalConfig | 899 | 908 | from .types.tool import Retrieval | | 909 | +from .types.tool import RetrievalConfig | 900 | 910 | from .types.tool import Tool | 901 | 911 | from .types.tool import ToolConfig | 902 | 912 | from .types.tool import VertexAISearch | | 994 | 1004 | "FeatureRegistryServiceAsyncClient", | 995 | 1005 | "FeaturestoreOnlineServingServiceAsyncClient", | 996 | 1006 | "FeaturestoreServiceAsyncClient", | | 1007 | + "GenAiCacheServiceAsyncClient", | 997 | 1008 | "GenAiTuningServiceAsyncClient", | 998 | 1009 | "IndexEndpointServiceAsyncClient", | 999 | 1010 | "IndexServiceAsyncClient", | | 1071 | 1082 | "Blob", | 1072 | 1083 | "BlurBaselineConfig", | 1073 | 1084 | "BoolArray", | | 1085 | + "CachedContent", | 1074 | 1086 | "CancelBatchPredictionJobRequest", | 1075 | 1087 | "CancelCustomJobRequest", | 1076 | 1088 | "CancelDataLabelingJobRequest", | | 1113 | 1125 | "CountTokensResponse", | 1114 | 1126 | "CreateArtifactRequest", | 1115 | 1127 | "CreateBatchPredictionJobRequest", | | 1128 | + "CreateCachedContentRequest", | 1116 | 1129 | "CreateContextRequest", | 1117 | 1130 | "CreateCustomJobRequest", | 1118 | 1131 | "CreateDataLabelingJobRequest", | | 1182 | 1195 | "DedicatedResources", | 1183 | 1196 | "DeleteArtifactRequest", | 1184 | 1197 | "DeleteBatchPredictionJobRequest", | | 1198 | + "DeleteCachedContentRequest", | 1185 | 1199 | "DeleteContextRequest", | 1186 | 1200 | "DeleteCustomJobRequest", | 1187 | 1201 | "DeleteDataLabelingJobRequest", | | 1336 | 1350 | "FunctionResponse", | 1337 | 1351 | "GcsDestination", | 1338 | 1352 | "GcsSource", | | 1353 | + "GenAiCacheServiceClient", | 1339 | 1354 | "GenAiTuningServiceClient", | 1340 | 1355 | "GenerateContentRequest", | 1341 | 1356 | "GenerateContentResponse", | | 1345 | 1360 | "GetAnnotationSpecRequest", | 1346 | 1361 | "GetArtifactRequest", | 1347 | 1362 | "GetBatchPredictionJobRequest", | | 1363 | + "GetCachedContentRequest", | 1348 | 1364 | "GetContextRequest", | 1349 | 1365 | "GetCustomJobRequest", | 1350 | 1366 | "GetDataLabelingJobRequest", | | 1434 | 1450 | "ListArtifactsResponse", | 1435 | 1451 | "ListBatchPredictionJobsRequest", | 1436 | 1452 | "ListBatchPredictionJobsResponse", | | 1453 | + "ListCachedContentsRequest", | | 1454 | + "ListCachedContentsResponse", | 1437 | 1455 | "ListContextsRequest", | 1438 | 1456 | "ListContextsResponse", | 1439 | 1457 | "ListCustomJobsRequest", | | 1710 | 1728 | "ResumeModelDeploymentMonitoringJobRequest", | 1711 | 1729 | "ResumeScheduleRequest", | 1712 | 1730 | "Retrieval", | | 1731 | + "RetrievalConfig", | 1713 | 1732 | "RetrievalMetadata", | 1714 | 1733 | "RetrieveContextsRequest", | 1715 | 1734 | "RetrieveContextsResponse", | | 1851 | 1870 | "UndeployModelResponse", | 1852 | 1871 | "UnmanagedContainerModel", | 1853 | 1872 | "UpdateArtifactRequest", | | 1873 | + "UpdateCachedContentRequest", | 1854 | 1874 | "UpdateContextRequest", | 1855 | 1875 | "UpdateDatasetRequest", | 1856 | 1876 | "UpdateDatasetVersionRequest", | |
Collapse file Copy file name to clipboardExpand all lines: google/cloud/aiplatform_v1/gapic_metadata.json +94Lines changed: 94 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1451 | 1451 | } | 1452 | 1452 | } | 1453 | 1453 | }, | | 1454 | + "GenAiCacheService": { | | 1455 | + "clients": { | | 1456 | + "grpc": { | | 1457 | + "libraryClient": "GenAiCacheServiceClient", | | 1458 | + "rpcs": { | | 1459 | + "CreateCachedContent": { | | 1460 | + "methods": [ | | 1461 | + "create_cached_content" | | 1462 | + ] | | 1463 | + }, | | 1464 | + "DeleteCachedContent": { | | 1465 | + "methods": [ | | 1466 | + "delete_cached_content" | | 1467 | + ] | | 1468 | + }, | | 1469 | + "GetCachedContent": { | | 1470 | + "methods": [ | | 1471 | + "get_cached_content" | | 1472 | + ] | | 1473 | + }, | | 1474 | + "ListCachedContents": { | | 1475 | + "methods": [ | | 1476 | + "list_cached_contents" | | 1477 | + ] | | 1478 | + }, | | 1479 | + "UpdateCachedContent": { | | 1480 | + "methods": [ | | 1481 | + "update_cached_content" | | 1482 | + ] | | 1483 | + } | | 1484 | + } | | 1485 | + }, | | 1486 | + "grpc-async": { | | 1487 | + "libraryClient": "GenAiCacheServiceAsyncClient", | | 1488 | + "rpcs": { | | 1489 | + "CreateCachedContent": { | | 1490 | + "methods": [ | | 1491 | + "create_cached_content" | | 1492 | + ] | | 1493 | + }, | | 1494 | + "DeleteCachedContent": { | | 1495 | + "methods": [ | | 1496 | + "delete_cached_content" | | 1497 | + ] | | 1498 | + }, | | 1499 | + "GetCachedContent": { | | 1500 | + "methods": [ | | 1501 | + "get_cached_content" | | 1502 | + ] | | 1503 | + }, | | 1504 | + "ListCachedContents": { | | 1505 | + "methods": [ | | 1506 | + "list_cached_contents" | | 1507 | + ] | | 1508 | + }, | | 1509 | + "UpdateCachedContent": { | | 1510 | + "methods": [ | | 1511 | + "update_cached_content" | | 1512 | + ] | | 1513 | + } | | 1514 | + } | | 1515 | + }, | | 1516 | + "rest": { | | 1517 | + "libraryClient": "GenAiCacheServiceClient", | | 1518 | + "rpcs": { | | 1519 | + "CreateCachedContent": { | | 1520 | + "methods": [ | | 1521 | + "create_cached_content" | | 1522 | + ] | | 1523 | + }, | | 1524 | + "DeleteCachedContent": { | | 1525 | + "methods": [ | | 1526 | + "delete_cached_content" | | 1527 | + ] | | 1528 | + }, | | 1529 | + "GetCachedContent": { | | 1530 | + "methods": [ | | 1531 | + "get_cached_content" | | 1532 | + ] | | 1533 | + }, | | 1534 | + "ListCachedContents": { | | 1535 | + "methods": [ | | 1536 | + "list_cached_contents" | | 1537 | + ] | | 1538 | + }, | | 1539 | + "UpdateCachedContent": { | | 1540 | + "methods": [ | | 1541 | + "update_cached_content" | | 1542 | + ] | | 1543 | + } | | 1544 | + } | | 1545 | + } | | 1546 | + } | | 1547 | + }, | 1454 | 1548 | "GenAiTuningService": { | 1455 | 1549 | "clients": { | 1456 | 1550 | "grpc": { | |
Collapse file Copy file name to clipboard +22Lines changed: 22 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +# -*- coding: utf-8 -*- | | 2 | +# Copyright 2024 Google LLC | | 3 | +# | | 4 | +# Licensed under the Apache License, Version 2.0 (the "License"); | | 5 | +# you may not use this file except in compliance with the License. | | 6 | +# You may obtain a copy of the License at | | 7 | +# | | 8 | +# http://www.apache.org/licenses/LICENSE-2.0 | | 9 | +# | | 10 | +# Unless required by applicable law or agreed to in writing, software | | 11 | +# distributed under the License is distributed on an "AS IS" BASIS, | | 12 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | | 13 | +# See the License for the specific language governing permissions and | | 14 | +# limitations under the License. | | 15 | +# | | 16 | +from .client import GenAiCacheServiceClient | | 17 | +from .async_client import GenAiCacheServiceAsyncClient | | 18 | + | | 19 | +__all__ = ( | | 20 | + "GenAiCacheServiceClient", | | 21 | + "GenAiCacheServiceAsyncClient", | | 22 | +) |
|