📂 File Browser

/AgentAI/vendor/google/apiclient-services/src/Aiplatform/Resource
🌙 Dark Mode
🎯 Quick Launch:

📁 Directories

📄 Files

🐘 BatchPredictionJobs.php
▶ Open 📄 View Source
🐘 CustomJobs.php
▶ Open 📄 View Source
🐘 CustomJobsOperations.php
▶ Open 📄 View Source
🐘 DataLabelingJobs.php
▶ Open 📄 View Source
🐘 DataLabelingJobsOperations.php
▶ Open 📄 View Source
🐘 Datasets.php
▶ Open 📄 View Source
🐘 DatasetsAnnotationSpecs.php
▶ Open 📄 View Source
🐘 DatasetsAnnotationSpecsOperations.php
▶ Open 📄 View Source
🐘 DatasetsDataItems.php
▶ Open 📄 View Source
🐘 DatasetsDataItemsAnnotations.php
▶ Open 📄 View Source
🐘 DatasetsDataItemsAnnotationsOperations.php
▶ Open 📄 View Source
🐘 DatasetsDataItemsOperations.php
▶ Open 📄 View Source
🐘 DatasetsDatasetVersions.php
▶ Open 📄 View Source
🐘 DatasetsOperations.php
▶ Open 📄 View Source
🐘 DatasetsSavedQueries.php
▶ Open 📄 View Source
🐘 DatasetsSavedQueriesOperations.php
▶ Open 📄 View Source
🐘 DeploymentResourcePools.php
▶ Open 📄 View Source
🐘 DeploymentResourcePoolsOperations.php
▶ Open 📄 View Source
🐘 Endpoints.php
▶ Open 📄 View Source
🐘 EndpointsChat.php
▶ Open 📄 View Source
🐘 EndpointsOperations.php
▶ Open 📄 View Source
🐘 FeatureGroups.php
▶ Open 📄 View Source
🐘 FeatureGroupsFeatures.php
▶ Open 📄 View Source
🐘 FeatureGroupsFeaturesOperations.php
▶ Open 📄 View Source
🐘 FeatureGroupsOperations.php
▶ Open 📄 View Source
🐘 FeatureOnlineStores.php
▶ Open 📄 View Source
🐘 FeatureOnlineStoresFeatureViews.php
▶ Open 📄 View Source
🐘 FeatureOnlineStoresFeatureViewsOperations.php
▶ Open 📄 View Source
🐘 FeatureOnlineStoresOperations.php
▶ Open 📄 View Source
🐘 Featurestores.php
▶ Open 📄 View Source
🐘 FeaturestoresEntityTypes.php
▶ Open 📄 View Source
🐘 FeaturestoresEntityTypesFeatures.php
▶ Open 📄 View Source
🐘 FeaturestoresEntityTypesFeaturesOperations.php
▶ Open 📄 View Source
🐘 FeaturestoresEntityTypesOperations.php
▶ Open 📄 View Source
🐘 FeaturestoresOperations.php
▶ Open 📄 View Source
🐘 HyperparameterTuningJobs.php
▶ Open 📄 View Source
🐘 HyperparameterTuningJobsOperations.php
▶ Open 📄 View Source
🐘 IndexEndpoints.php
▶ Open 📄 View Source
🐘 IndexEndpointsOperations.php
▶ Open 📄 View Source
🐘 Indexes.php
▶ Open 📄 View Source
🐘 IndexesOperations.php
▶ Open 📄 View Source
🐘 Media.php
▶ Open 📄 View Source
🐘 MetadataStores.php
▶ Open 📄 View Source
🐘 MetadataStoresArtifacts.php
▶ Open 📄 View Source
🐘 MetadataStoresArtifactsOperations.php
▶ Open 📄 View Source
🐘 MetadataStoresContexts.php
▶ Open 📄 View Source
🐘 MetadataStoresContextsOperations.php
▶ Open 📄 View Source
🐘 MetadataStoresExecutions.php
▶ Open 📄 View Source
🐘 MetadataStoresExecutionsOperations.php
▶ Open 📄 View Source
🐘 MetadataStoresOperations.php
▶ Open 📄 View Source
🐘 MigratableResources.php
▶ Open 📄 View Source
🐘 MigratableResourcesOperations.php
▶ Open 📄 View Source
🐘 ModelDeploymentMonitoringJobs.php
▶ Open 📄 View Source
🐘 ModelDeploymentMonitoringJobsOperations.php
▶ Open 📄 View Source
🐘 Models.php
▶ Open 📄 View Source
🐘 ModelsEvaluations.php
▶ Open 📄 View Source
🐘 ModelsEvaluationsOperations.php
▶ Open 📄 View Source
🐘 ModelsOperations.php
▶ Open 📄 View Source
🐘 NotebookExecutionJobs.php
▶ Open 📄 View Source
🐘 NotebookExecutionJobsOperations.php
▶ Open 📄 View Source
🐘 NotebookRuntimeTemplates.php
▶ Open 📄 View Source
🐘 NotebookRuntimeTemplatesOperations.php
▶ Open 📄 View Source
🐘 NotebookRuntimes.php
▶ Open 📄 View Source
🐘 NotebookRuntimesOperations.php
▶ Open 📄 View Source
🐘 Operations.php
▶ Open 📄 View Source
🐘 PersistentResources.php
▶ Open 📄 View Source
🐘 PersistentResourcesOperations.php
▶ Open 📄 View Source
🐘 PipelineJobs.php
▶ Open 📄 View Source
🐘 PipelineJobsOperations.php
▶ Open 📄 View Source
🐘 Projects.php
▶ Open 📄 View Source
🐘 ProjectsLocations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsBatchPredictionJobs.php
▶ Open 📄 View Source
🐘 ProjectsLocationsCachedContents.php
▶ Open 📄 View Source
🐘 ProjectsLocationsCustomJobs.php
▶ Open 📄 View Source
🐘 ProjectsLocationsCustomJobsOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsDataLabelingJobs.php
▶ Open 📄 View Source
🐘 ProjectsLocationsDataLabelingJobsOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsDatasets.php
▶ Open 📄 View Source
🐘 ProjectsLocationsDatasetsAnnotationSpecs.php
▶ Open 📄 View Source
🐘 ProjectsLocationsDatasetsAnnotationSpecsOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsDatasetsDataItems.php
▶ Open 📄 View Source
🐘 ProjectsLocationsDatasetsDataItemsAnnotations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsDatasetsDataItemsAnnotationsOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsDatasetsDataItemsOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsDatasetsDatasetVersions.php
▶ Open 📄 View Source
🐘 ProjectsLocationsDatasetsOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsDatasetsSavedQueries.php
▶ Open 📄 View Source
🐘 ProjectsLocationsDatasetsSavedQueriesOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsDeploymentResourcePools.php
▶ Open 📄 View Source
🐘 ProjectsLocationsDeploymentResourcePoolsOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsEndpoints.php
▶ Open 📄 View Source
🐘 ProjectsLocationsEndpointsChat.php
▶ Open 📄 View Source
🐘 ProjectsLocationsEndpointsDeployedModels.php
▶ Open 📄 View Source
🐘 ProjectsLocationsEndpointsDeployedModelsInvoke.php
▶ Open 📄 View Source
🐘 ProjectsLocationsEndpointsGoogle.php
▶ Open 📄 View Source
🐘 ProjectsLocationsEndpointsGoogleScience.php
▶ Open 📄 View Source
🐘 ProjectsLocationsEndpointsInvoke.php
▶ Open 📄 View Source
🐘 ProjectsLocationsEndpointsOpenapi.php
▶ Open 📄 View Source
🐘 ProjectsLocationsEndpointsOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsEvaluationItems.php
▶ Open 📄 View Source
🐘 ProjectsLocationsEvaluationRuns.php
▶ Open 📄 View Source
🐘 ProjectsLocationsEvaluationSets.php
▶ Open 📄 View Source
🐘 ProjectsLocationsFeatureGroups.php
▶ Open 📄 View Source
🐘 ProjectsLocationsFeatureGroupsFeatures.php
▶ Open 📄 View Source
🐘 ProjectsLocationsFeatureGroupsFeaturesOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsFeatureGroupsOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsFeatureOnlineStores.php
▶ Open 📄 View Source
🐘 ProjectsLocationsFeatureOnlineStoresFeatureViews.php
▶ Open 📄 View Source
🐘 ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncs.php
▶ Open 📄 View Source
🐘 ProjectsLocationsFeatureOnlineStoresFeatureViewsOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsFeatureOnlineStoresOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsFeaturestores.php
▶ Open 📄 View Source
🐘 ProjectsLocationsFeaturestoresEntityTypes.php
▶ Open 📄 View Source
🐘 ProjectsLocationsFeaturestoresEntityTypesFeatures.php
▶ Open 📄 View Source
🐘 ProjectsLocationsFeaturestoresEntityTypesFeaturesOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsFeaturestoresEntityTypesOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsFeaturestoresOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsHyperparameterTuningJobs.php
▶ Open 📄 View Source
🐘 ProjectsLocationsHyperparameterTuningJobsOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsIndexEndpoints.php
▶ Open 📄 View Source
🐘 ProjectsLocationsIndexEndpointsOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsIndexes.php
▶ Open 📄 View Source
🐘 ProjectsLocationsIndexesOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsMetadataStores.php
▶ Open 📄 View Source
🐘 ProjectsLocationsMetadataStoresArtifacts.php
▶ Open 📄 View Source
🐘 ProjectsLocationsMetadataStoresArtifactsOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsMetadataStoresContexts.php
▶ Open 📄 View Source
🐘 ProjectsLocationsMetadataStoresContextsOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsMetadataStoresExecutions.php
▶ Open 📄 View Source
🐘 ProjectsLocationsMetadataStoresExecutionsOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsMetadataStoresMetadataSchemas.php
▶ Open 📄 View Source
🐘 ProjectsLocationsMetadataStoresOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsMigratableResources.php
▶ Open 📄 View Source
🐘 ProjectsLocationsMigratableResourcesOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsModelDeploymentMonitoringJobs.php
▶ Open 📄 View Source
🐘 ProjectsLocationsModelDeploymentMonitoringJobsOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsModels.php
▶ Open 📄 View Source
🐘 ProjectsLocationsModelsEvaluations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsModelsEvaluationsOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsModelsEvaluationsSlices.php
▶ Open 📄 View Source
🐘 ProjectsLocationsModelsOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsNasJobs.php
▶ Open 📄 View Source
🐘 ProjectsLocationsNasJobsNasTrialDetails.php
▶ Open 📄 View Source
🐘 ProjectsLocationsNotebookExecutionJobs.php
▶ Open 📄 View Source
🐘 ProjectsLocationsNotebookExecutionJobsOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsNotebookRuntimeTemplates.php
▶ Open 📄 View Source
🐘 ProjectsLocationsNotebookRuntimeTemplatesOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsNotebookRuntimes.php
▶ Open 📄 View Source
🐘 ProjectsLocationsNotebookRuntimesOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsPersistentResources.php
▶ Open 📄 View Source
🐘 ProjectsLocationsPersistentResourcesOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsPipelineJobs.php
▶ Open 📄 View Source
🐘 ProjectsLocationsPipelineJobsOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsPublishers.php
▶ Open 📄 View Source
🐘 ProjectsLocationsPublishersModels.php
▶ Open 📄 View Source
🐘 ProjectsLocationsPublishersModelsInvoke.php
▶ Open 📄 View Source
🐘 ProjectsLocationsRagCorpora.php
▶ Open 📄 View Source
🐘 ProjectsLocationsRagCorporaOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsRagCorporaRagFiles.php
▶ Open 📄 View Source
🐘 ProjectsLocationsRagCorporaRagFilesOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsRagEngineConfig.php
▶ Open 📄 View Source
🐘 ProjectsLocationsRagEngineConfigOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsReasoningEngines.php
▶ Open 📄 View Source
🐘 ProjectsLocationsReasoningEnginesMemories.php
▶ Open 📄 View Source
🐘 ProjectsLocationsReasoningEnginesMemoriesOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsReasoningEnginesMemoriesRevisions.php
▶ Open 📄 View Source
🐘 ProjectsLocationsReasoningEnginesOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsReasoningEnginesRuntimeRevisions.php
▶ Open 📄 View Source
🐘 ProjectsLocationsReasoningEnginesSandboxEnvironmentSnapshots.php
▶ Open 📄 View Source
🐘 ProjectsLocationsReasoningEnginesSandboxEnvironmentSnapshotsOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsReasoningEnginesSandboxEnvironmentTemplates.php
▶ Open 📄 View Source
🐘 ProjectsLocationsReasoningEnginesSandboxEnvironmentTemplatesOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsReasoningEnginesSandboxEnvironments.php
▶ Open 📄 View Source
🐘 ProjectsLocationsReasoningEnginesSandboxEnvironmentsOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsReasoningEnginesSessions.php
▶ Open 📄 View Source
🐘 ProjectsLocationsReasoningEnginesSessionsEvents.php
▶ Open 📄 View Source
🐘 ProjectsLocationsReasoningEnginesSessionsOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsSchedules.php
▶ Open 📄 View Source
🐘 ProjectsLocationsSchedulesOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsSpecialistPools.php
▶ Open 📄 View Source
🐘 ProjectsLocationsSpecialistPoolsOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsStudies.php
▶ Open 📄 View Source
🐘 ProjectsLocationsStudiesOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsStudiesTrials.php
▶ Open 📄 View Source
🐘 ProjectsLocationsStudiesTrialsOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsTensorboards.php
▶ Open 📄 View Source
🐘 ProjectsLocationsTensorboardsExperiments.php
▶ Open 📄 View Source
🐘 ProjectsLocationsTensorboardsExperimentsOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsTensorboardsExperimentsRuns.php
▶ Open 📄 View Source
🐘 ProjectsLocationsTensorboardsExperimentsRunsOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsTensorboardsExperimentsRunsTimeSeries.php
▶ Open 📄 View Source
🐘 ProjectsLocationsTensorboardsExperimentsRunsTimeSeriesOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsTensorboardsOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsTrainingPipelines.php
▶ Open 📄 View Source
🐘 ProjectsLocationsTrainingPipelinesOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsTuningJobs.php
▶ Open 📄 View Source
🐘 ProjectsLocationsTuningJobsOperations.php
▶ Open 📄 View Source
🐘 Publishers.php
▶ Open 📄 View Source
🐘 PublishersModels.php
▶ Open 📄 View Source
🐘 RagCorpora.php
▶ Open 📄 View Source
🐘 RagCorporaOperations.php
▶ Open 📄 View Source
🐘 RagCorporaRagFiles.php
▶ Open 📄 View Source
🐘 RagCorporaRagFilesOperations.php
▶ Open 📄 View Source
🐘 RagEngineConfig.php
▶ Open 📄 View Source
🐘 RagEngineConfigOperations.php
▶ Open 📄 View Source
🐘 ReasoningEngines.php
▶ Open 📄 View Source
🐘 ReasoningEnginesMemories.php
▶ Open 📄 View Source
🐘 ReasoningEnginesMemoriesOperations.php
▶ Open 📄 View Source
🐘 ReasoningEnginesOperations.php
▶ Open 📄 View Source
🐘 ReasoningEnginesRuntimeRevisions.php
▶ Open 📄 View Source
🐘 ReasoningEnginesSandboxEnvironmentSnapshots.php
▶ Open 📄 View Source
🐘 ReasoningEnginesSandboxEnvironmentSnapshotsOperations.php
▶ Open 📄 View Source
🐘 ReasoningEnginesSandboxEnvironmentTemplates.php
▶ Open 📄 View Source
🐘 ReasoningEnginesSandboxEnvironmentTemplatesOperations.php
▶ Open 📄 View Source
🐘 ReasoningEnginesSandboxEnvironments.php
▶ Open 📄 View Source
🐘 ReasoningEnginesSandboxEnvironmentsOperations.php
▶ Open 📄 View Source
🐘 ReasoningEnginesSessions.php
▶ Open 📄 View Source
🐘 ReasoningEnginesSessionsOperations.php
▶ Open 📄 View Source
🐘 Schedules.php
▶ Open 📄 View Source
🐘 SchedulesOperations.php
▶ Open 📄 View Source
🐘 SpecialistPools.php
▶ Open 📄 View Source
🐘 SpecialistPoolsOperations.php
▶ Open 📄 View Source
🐘 Studies.php
▶ Open 📄 View Source
🐘 StudiesOperations.php
▶ Open 📄 View Source
🐘 StudiesTrials.php
▶ Open 📄 View Source
🐘 StudiesTrialsOperations.php
▶ Open 📄 View Source
🐘 Tensorboards.php
▶ Open 📄 View Source
🐘 TensorboardsExperiments.php
▶ Open 📄 View Source
🐘 TensorboardsExperimentsOperations.php
▶ Open 📄 View Source
🐘 TensorboardsExperimentsRuns.php
▶ Open 📄 View Source
🐘 TensorboardsExperimentsRunsOperations.php
▶ Open 📄 View Source
🐘 TensorboardsExperimentsRunsTimeSeries.php
▶ Open 📄 View Source
🐘 TensorboardsExperimentsRunsTimeSeriesOperations.php
▶ Open 📄 View Source
🐘 TensorboardsOperations.php
▶ Open 📄 View Source
🐘 TrainingPipelines.php
▶ Open 📄 View Source
🐘 TrainingPipelinesOperations.php
▶ Open 📄 View Source
🐘 TuningJobs.php
▶ Open 📄 View Source
🐘 TuningJobsOperations.php
▶ Open 📄 View Source

📄 Source: ProjectsLocations.php

<?php
/*
 * Copyright 2014 Google Inc.
 *
 * 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
 *
 * http://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.
 */

namespace Google\Service\Aiplatform\Resource;

use Google\Service\Aiplatform\GoogleCloudAiplatformV1AskContextsRequest;
use Google\Service\Aiplatform\GoogleCloudAiplatformV1AskContextsResponse;
use Google\Service\Aiplatform\GoogleCloudAiplatformV1AsyncRetrieveContextsRequest;
use Google\Service\Aiplatform\GoogleCloudAiplatformV1AugmentPromptRequest;
use Google\Service\Aiplatform\GoogleCloudAiplatformV1AugmentPromptResponse;
use Google\Service\Aiplatform\GoogleCloudAiplatformV1CorroborateContentRequest;
use Google\Service\Aiplatform\GoogleCloudAiplatformV1CorroborateContentResponse;
use Google\Service\Aiplatform\GoogleCloudAiplatformV1DeployRequest;
use Google\Service\Aiplatform\GoogleCloudAiplatformV1EvaluateDatasetRequest;
use Google\Service\Aiplatform\GoogleCloudAiplatformV1EvaluateInstancesRequest;
use Google\Service\Aiplatform\GoogleCloudAiplatformV1EvaluateInstancesResponse;
use Google\Service\Aiplatform\GoogleCloudAiplatformV1GenerateInstanceRubricsRequest;
use Google\Service\Aiplatform\GoogleCloudAiplatformV1GenerateInstanceRubricsResponse;
use Google\Service\Aiplatform\GoogleCloudAiplatformV1GenerateSyntheticDataRequest;
use Google\Service\Aiplatform\GoogleCloudAiplatformV1GenerateSyntheticDataResponse;
use Google\Service\Aiplatform\GoogleCloudAiplatformV1RagEngineConfig;
use Google\Service\Aiplatform\GoogleCloudAiplatformV1RetrieveContextsRequest;
use Google\Service\Aiplatform\GoogleCloudAiplatformV1RetrieveContextsResponse;
use Google\Service\Aiplatform\GoogleCloudLocationListLocationsResponse;
use Google\Service\Aiplatform\GoogleCloudLocationLocation;
use Google\Service\Aiplatform\GoogleLongrunningOperation;

/**
 * The "locations" collection of methods.
 * Typical usage is:
 *  <code>
 *   $aiplatformService = new Google\Service\Aiplatform(...);
 *   $locations = $aiplatformService->projects_locations;
 *  </code>
 */
class ProjectsLocations extends \Google\Service\Resource
{
  /**
   * Agentic Retrieval Ask API for RAG. (locations.askContexts)
   *
   * @param string $parent Required. The resource name of the Location from which
   * to retrieve RagContexts. The users must have permission to make a call in the
   * project. Format: `projects/{project}/locations/{location}`.
   * @param GoogleCloudAiplatformV1AskContextsRequest $postBody
   * @param array $optParams Optional parameters.
   * @return GoogleCloudAiplatformV1AskContextsResponse
   * @throws \Google\Service\Exception
   */
  public function askContexts($parent, GoogleCloudAiplatformV1AskContextsRequest $postBody, $optParams = [])
  {
    $params = ['parent' => $parent, 'postBody' => $postBody];
    $params = array_merge($params, $optParams);
    return $this->call('askContexts', [$params], GoogleCloudAiplatformV1AskContextsResponse::class);
  }
  /**
   * Asynchronous API to retrieves relevant contexts for a query.
   * (locations.asyncRetrieveContexts)
   *
   * @param string $parent Required. The resource name of the Location from which
   * to retrieve RagContexts. The users must have permission to make a call in the
   * project. Format: `projects/{project}/locations/{location}`.
   * @param GoogleCloudAiplatformV1AsyncRetrieveContextsRequest $postBody
   * @param array $optParams Optional parameters.
   * @return GoogleLongrunningOperation
   * @throws \Google\Service\Exception
   */
  public function asyncRetrieveContexts($parent, GoogleCloudAiplatformV1AsyncRetrieveContextsRequest $postBody, $optParams = [])
  {
    $params = ['parent' => $parent, 'postBody' => $postBody];
    $params = array_merge($params, $optParams);
    return $this->call('asyncRetrieveContexts', [$params], GoogleLongrunningOperation::class);
  }
  /**
   * Given an input prompt, it returns augmented prompt from vertex rag store to
   * guide LLM towards generating grounded responses. (locations.augmentPrompt)
   *
   * @param string $parent Required. The resource name of the Location from which
   * to augment prompt. The users must have permission to make a call in the
   * project. Format: `projects/{project}/locations/{location}`.
   * @param GoogleCloudAiplatformV1AugmentPromptRequest $postBody
   * @param array $optParams Optional parameters.
   * @return GoogleCloudAiplatformV1AugmentPromptResponse
   * @throws \Google\Service\Exception
   */
  public function augmentPrompt($parent, GoogleCloudAiplatformV1AugmentPromptRequest $postBody, $optParams = [])
  {
    $params = ['parent' => $parent, 'postBody' => $postBody];
    $params = array_merge($params, $optParams);
    return $this->call('augmentPrompt', [$params], GoogleCloudAiplatformV1AugmentPromptResponse::class);
  }
  /**
   * Given an input text, it returns a score that evaluates the factuality of the
   * text. It also extracts and returns claims from the text and provides
   * supporting facts. (locations.corroborateContent)
   *
   * @param string $parent Required. The resource name of the Location from which
   * to corroborate text. The users must have permission to make a call in the
   * project. Format: `projects/{project}/locations/{location}`.
   * @param GoogleCloudAiplatformV1CorroborateContentRequest $postBody
   * @param array $optParams Optional parameters.
   * @return GoogleCloudAiplatformV1CorroborateContentResponse
   * @throws \Google\Service\Exception
   */
  public function corroborateContent($parent, GoogleCloudAiplatformV1CorroborateContentRequest $postBody, $optParams = [])
  {
    $params = ['parent' => $parent, 'postBody' => $postBody];
    $params = array_merge($params, $optParams);
    return $this->call('corroborateContent', [$params], GoogleCloudAiplatformV1CorroborateContentResponse::class);
  }
  /**
   * Deploys a model to a new endpoint. (locations.deploy)
   *
   * @param string $destination Required. The resource name of the Location to
   * deploy the model in. Format: `projects/{project}/locations/{location}`
   * @param GoogleCloudAiplatformV1DeployRequest $postBody
   * @param array $optParams Optional parameters.
   * @return GoogleLongrunningOperation
   * @throws \Google\Service\Exception
   */
  public function deploy($destination, GoogleCloudAiplatformV1DeployRequest $postBody, $optParams = [])
  {
    $params = ['destination' => $destination, 'postBody' => $postBody];
    $params = array_merge($params, $optParams);
    return $this->call('deploy', [$params], GoogleLongrunningOperation::class);
  }
  /**
   * Evaluates a dataset based on a set of given metrics.
   * (locations.evaluateDataset)
   *
   * @param string $location Required. The resource name of the Location to
   * evaluate the dataset. Format: `projects/{project}/locations/{location}`
   * @param GoogleCloudAiplatformV1EvaluateDatasetRequest $postBody
   * @param array $optParams Optional parameters.
   * @return GoogleLongrunningOperation
   * @throws \Google\Service\Exception
   */
  public function evaluateDataset($location, GoogleCloudAiplatformV1EvaluateDatasetRequest $postBody, $optParams = [])
  {
    $params = ['location' => $location, 'postBody' => $postBody];
    $params = array_merge($params, $optParams);
    return $this->call('evaluateDataset', [$params], GoogleLongrunningOperation::class);
  }
  /**
   * Evaluates instances based on a given metric. (locations.evaluateInstances)
   *
   * @param string $location Required. The resource name of the Location to
   * evaluate the instances. Format: `projects/{project}/locations/{location}`
   * @param GoogleCloudAiplatformV1EvaluateInstancesRequest $postBody
   * @param array $optParams Optional parameters.
   * @return GoogleCloudAiplatformV1EvaluateInstancesResponse
   * @throws \Google\Service\Exception
   */
  public function evaluateInstances($location, GoogleCloudAiplatformV1EvaluateInstancesRequest $postBody, $optParams = [])
  {
    $params = ['location' => $location, 'postBody' => $postBody];
    $params = array_merge($params, $optParams);
    return $this->call('evaluateInstances', [$params], GoogleCloudAiplatformV1EvaluateInstancesResponse::class);
  }
  /**
   * Generates rubrics for a given prompt. A rubric represents a single testable
   * criterion for evaluation. One input prompt could have multiple rubrics This
   * RPC allows users to get suggested rubrics based on provided prompt, which can
   * then be reviewed and used for subsequent evaluations.
   * (locations.generateInstanceRubrics)
   *
   * @param string $location Required. The resource name of the Location to
   * generate rubrics from. Format: `projects/{project}/locations/{location}`
   * @param GoogleCloudAiplatformV1GenerateInstanceRubricsRequest $postBody
   * @param array $optParams Optional parameters.
   * @return GoogleCloudAiplatformV1GenerateInstanceRubricsResponse
   * @throws \Google\Service\Exception
   */
  public function generateInstanceRubrics($location, GoogleCloudAiplatformV1GenerateInstanceRubricsRequest $postBody, $optParams = [])
  {
    $params = ['location' => $location, 'postBody' => $postBody];
    $params = array_merge($params, $optParams);
    return $this->call('generateInstanceRubrics', [$params], GoogleCloudAiplatformV1GenerateInstanceRubricsResponse::class);
  }
  /**
   * Generates synthetic (artificial) data based on a description
   * (locations.generateSyntheticData)
   *
   * @param string $location Required. The geographic location where the synthetic
   * data generation request is processed. This should be in the format
   * `projects/{project}/locations/{location}`. For example, `projects/my-
   * project/locations/us-central1`.
   * @param GoogleCloudAiplatformV1GenerateSyntheticDataRequest $postBody
   * @param array $optParams Optional parameters.
   * @return GoogleCloudAiplatformV1GenerateSyntheticDataResponse
   * @throws \Google\Service\Exception
   */
  public function generateSyntheticData($location, GoogleCloudAiplatformV1GenerateSyntheticDataRequest $postBody, $optParams = [])
  {
    $params = ['location' => $location, 'postBody' => $postBody];
    $params = array_merge($params, $optParams);
    return $this->call('generateSyntheticData', [$params], GoogleCloudAiplatformV1GenerateSyntheticDataResponse::class);
  }
  /**
   * Gets information about a location. (locations.get)
   *
   * @param string $name Resource name for the location.
   * @param array $optParams Optional parameters.
   * @return GoogleCloudLocationLocation
   * @throws \Google\Service\Exception
   */
  public function get($name, $optParams = [])
  {
    $params = ['name' => $name];
    $params = array_merge($params, $optParams);
    return $this->call('get', [$params], GoogleCloudLocationLocation::class);
  }
  /**
   * Gets a RagEngineConfig. (locations.getRagEngineConfig)
   *
   * @param string $name Required. The name of the RagEngineConfig resource.
   * Format: `projects/{project}/locations/{location}/ragEngineConfig`
   * @param array $optParams Optional parameters.
   * @return GoogleCloudAiplatformV1RagEngineConfig
   * @throws \Google\Service\Exception
   */
  public function getRagEngineConfig($name, $optParams = [])
  {
    $params = ['name' => $name];
    $params = array_merge($params, $optParams);
    return $this->call('getRagEngineConfig', [$params], GoogleCloudAiplatformV1RagEngineConfig::class);
  }
  /**
   * Lists information about the supported locations for this service. This method
   * lists locations based on the resource scope provided in the
   * [ListLocationsRequest.name] field: * **Global locations**: If `name` is
   * empty, the method lists the public locations available to all projects. *
   * **Project-specific locations**: If `name` follows the format
   * `projects/{project}`, the method lists locations visible to that specific
   * project. This includes public, private, or other project-specific locations
   * enabled for the project. For gRPC and client library implementations, the
   * resource name is passed as the `name` field. For direct service calls, the
   * resource name is incorporated into the request path based on the specific
   * service implementation and version. (locations.listProjectsLocations)
   *
   * @param string $name The resource that owns the locations collection, if
   * applicable.
   * @param array $optParams Optional parameters.
   *
   * @opt_param string extraLocationTypes Optional. Do not use this field. It is
   * unsupported and is ignored unless explicitly documented otherwise. This is
   * primarily for internal usage.
   * @opt_param string filter A filter to narrow down results to a preferred
   * subset. The filtering language accepts strings like `"displayName=tokyo"`,
   * and is documented in more detail in [AIP-160](https://google.aip.dev/160).
   * @opt_param int pageSize The maximum number of results to return. If not set,
   * the service selects a default.
   * @opt_param string pageToken A page token received from the `next_page_token`
   * field in the response. Send that page token to receive the subsequent page.
   * @return GoogleCloudLocationListLocationsResponse
   * @throws \Google\Service\Exception
   */
  public function listProjectsLocations($name, $optParams = [])
  {
    $params = ['name' => $name];
    $params = array_merge($params, $optParams);
    return $this->call('list', [$params], GoogleCloudLocationListLocationsResponse::class);
  }
  /**
   * Retrieves relevant contexts for a query. (locations.retrieveContexts)
   *
   * @param string $parent Required. The resource name of the Location from which
   * to retrieve RagContexts. The users must have permission to make a call in the
   * project. Format: `projects/{project}/locations/{location}`.
   * @param GoogleCloudAiplatformV1RetrieveContextsRequest $postBody
   * @param array $optParams Optional parameters.
   * @return GoogleCloudAiplatformV1RetrieveContextsResponse
   * @throws \Google\Service\Exception
   */
  public function retrieveContexts($parent, GoogleCloudAiplatformV1RetrieveContextsRequest $postBody, $optParams = [])
  {
    $params = ['parent' => $parent, 'postBody' => $postBody];
    $params = array_merge($params, $optParams);
    return $this->call('retrieveContexts', [$params], GoogleCloudAiplatformV1RetrieveContextsResponse::class);
  }
  /**
   * Updates a RagEngineConfig. (locations.updateRagEngineConfig)
   *
   * @param string $name Identifier. The name of the RagEngineConfig. Format:
   * `projects/{project}/locations/{location}/ragEngineConfig`
   * @param GoogleCloudAiplatformV1RagEngineConfig $postBody
   * @param array $optParams Optional parameters.
   * @return GoogleLongrunningOperation
   * @throws \Google\Service\Exception
   */
  public function updateRagEngineConfig($name, GoogleCloudAiplatformV1RagEngineConfig $postBody, $optParams = [])
  {
    $params = ['name' => $name, 'postBody' => $postBody];
    $params = array_merge($params, $optParams);
    return $this->call('updateRagEngineConfig', [$params], GoogleLongrunningOperation::class);
  }
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocations::class, 'Google_Service_Aiplatform_Resource_ProjectsLocations');
← Back