3.78.0 (latest) 3.77.0 3.76.0 3.75.0 3.74.0 3.73.0 3.72.0 3.71.0 3.70.0 3.69.0 3.68.0 3.67.0 3.66.0 3.65.0 3.64.0 3.63.0 3.62.0 3.61.0 3.60.0 3.59.0 3.58.0 3.57.0 3.56.0 3.55.0 3.54.0 3.53.0 3.52.0 3.51.0 3.50.0 3.49.0 3.48.0 3.47.0 3.46.0 3.45.0 3.44.0 3.43.0 3.42.0 3.41.0 3.40.0 3.39.0 3.38.0 3.37.0 3.36.0 3.35.0 3.34.0 3.33.0 3.32.0 3.31.0 3.30.0 3.29.0 3.28.0 3.27.0 3.26.0 3.25.0 3.24.0 3.23.0 3.22.0 3.21.0 3.20.0 3.19.0 3.18.0 3.17.0 3.16.0 3.15.0 3.14.0 3.13.0 3.12.0 3.11.0 3.10.0 3.9.0 3.8.0 3.7.0 3.6.0 3.5.0 3.4.0 3.3.0 3.2.0 3.1.0 3.0.0 2.28.0 2.27.0 2.26.0 2.25.0 2.24.0 2.23.0 2.22.0 2.21.0 2.20.0 2.19.0 2.18.0 2.17.0 2.16.0 2.15.0 2.14.0 2.13.0 2.12.0 2.11.0 2.10.0 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.8.0 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0

    public sealed class VertexRagServiceClientImpl : VertexRagServiceClient

Reference documentation and code samples for the Vertex AI v1 API class VertexRagServiceClientImpl.

VertexRagService client wrapper implementation, for convenient use.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> [VertexRagServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1/latest/Google.Cloud.AIPlatform.V1.VertexRagServiceClient.md.txt) \> VertexRagServiceClientImpl

## Inherited Members

[VertexRagServiceClient.DefaultEndpoint](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1/latest/Google.Cloud.AIPlatform.V1.VertexRagServiceClient.md.txt#Google_Cloud_AIPlatform_V1_VertexRagServiceClient_DefaultEndpoint) [VertexRagServiceClient.DefaultScopes](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1/latest/Google.Cloud.AIPlatform.V1.VertexRagServiceClient.md.txt#Google_Cloud_AIPlatform_V1_VertexRagServiceClient_DefaultScopes) [VertexRagServiceClient.ServiceMetadata](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1/latest/Google.Cloud.AIPlatform.V1.VertexRagServiceClient.md.txt#Google_Cloud_AIPlatform_V1_VertexRagServiceClient_ServiceMetadata) [VertexRagServiceClient.CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1/latest/Google.Cloud.AIPlatform.V1.VertexRagServiceClient.md.txt#Google_Cloud_AIPlatform_V1_VertexRagServiceClient_CreateAsync_System_Threading_CancellationToken_) [VertexRagServiceClient.Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1/latest/Google.Cloud.AIPlatform.V1.VertexRagServiceClient.md.txt#Google_Cloud_AIPlatform_V1_VertexRagServiceClient_Create) [VertexRagServiceClient.ShutdownDefaultChannelsAsync()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1/latest/Google.Cloud.AIPlatform.V1.VertexRagServiceClient.md.txt#Google_Cloud_AIPlatform_V1_VertexRagServiceClient_ShutdownDefaultChannelsAsync) [VertexRagServiceClient.RetrieveContextsAsync(RetrieveContextsRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1/latest/Google.Cloud.AIPlatform.V1.VertexRagServiceClient.md.txt#Google_Cloud_AIPlatform_V1_VertexRagServiceClient_RetrieveContextsAsync_Google_Cloud_AIPlatform_V1_RetrieveContextsRequest_System_Threading_CancellationToken_) [VertexRagServiceClient.RetrieveContexts(string, RagQuery, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1/latest/Google.Cloud.AIPlatform.V1.VertexRagServiceClient.md.txt#Google_Cloud_AIPlatform_V1_VertexRagServiceClient_RetrieveContexts_System_String_Google_Cloud_AIPlatform_V1_RagQuery_Google_Api_Gax_Grpc_CallSettings_) [VertexRagServiceClient.RetrieveContextsAsync(string, RagQuery, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1/latest/Google.Cloud.AIPlatform.V1.VertexRagServiceClient.md.txt#Google_Cloud_AIPlatform_V1_VertexRagServiceClient_RetrieveContextsAsync_System_String_Google_Cloud_AIPlatform_V1_RagQuery_Google_Api_Gax_Grpc_CallSettings_) [VertexRagServiceClient.RetrieveContextsAsync(string, RagQuery, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1/latest/Google.Cloud.AIPlatform.V1.VertexRagServiceClient.md.txt#Google_Cloud_AIPlatform_V1_VertexRagServiceClient_RetrieveContextsAsync_System_String_Google_Cloud_AIPlatform_V1_RagQuery_System_Threading_CancellationToken_) [VertexRagServiceClient.RetrieveContexts(LocationName, RagQuery, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1/latest/Google.Cloud.AIPlatform.V1.VertexRagServiceClient.md.txt#Google_Cloud_AIPlatform_V1_VertexRagServiceClient_RetrieveContexts_Google_Api_Gax_ResourceNames_LocationName_Google_Cloud_AIPlatform_V1_RagQuery_Google_Api_Gax_Grpc_CallSettings_) [VertexRagServiceClient.RetrieveContextsAsync(LocationName, RagQuery, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1/latest/Google.Cloud.AIPlatform.V1.VertexRagServiceClient.md.txt#Google_Cloud_AIPlatform_V1_VertexRagServiceClient_RetrieveContextsAsync_Google_Api_Gax_ResourceNames_LocationName_Google_Cloud_AIPlatform_V1_RagQuery_Google_Api_Gax_Grpc_CallSettings_) [VertexRagServiceClient.RetrieveContextsAsync(LocationName, RagQuery, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1/latest/Google.Cloud.AIPlatform.V1.VertexRagServiceClient.md.txt#Google_Cloud_AIPlatform_V1_VertexRagServiceClient_RetrieveContextsAsync_Google_Api_Gax_ResourceNames_LocationName_Google_Cloud_AIPlatform_V1_RagQuery_System_Threading_CancellationToken_) [VertexRagServiceClient.AugmentPromptAsync(AugmentPromptRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1/latest/Google.Cloud.AIPlatform.V1.VertexRagServiceClient.md.txt#Google_Cloud_AIPlatform_V1_VertexRagServiceClient_AugmentPromptAsync_Google_Cloud_AIPlatform_V1_AugmentPromptRequest_System_Threading_CancellationToken_) [VertexRagServiceClient.AugmentPrompt(string, AugmentPromptRequest.Types.Model, VertexRagStore, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1/latest/Google.Cloud.AIPlatform.V1.VertexRagServiceClient.md.txt#Google_Cloud_AIPlatform_V1_VertexRagServiceClient_AugmentPrompt_System_String_Google_Cloud_AIPlatform_V1_AugmentPromptRequest_Types_Model_Google_Cloud_AIPlatform_V1_VertexRagStore_Google_Api_Gax_Grpc_CallSettings_) [VertexRagServiceClient.AugmentPromptAsync(string, AugmentPromptRequest.Types.Model, VertexRagStore, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1/latest/Google.Cloud.AIPlatform.V1.VertexRagServiceClient.md.txt#Google_Cloud_AIPlatform_V1_VertexRagServiceClient_AugmentPromptAsync_System_String_Google_Cloud_AIPlatform_V1_AugmentPromptRequest_Types_Model_Google_Cloud_AIPlatform_V1_VertexRagStore_Google_Api_Gax_Grpc_CallSettings_) [VertexRagServiceClient.AugmentPromptAsync(string, AugmentPromptRequest.Types.Model, VertexRagStore, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1/latest/Google.Cloud.AIPlatform.V1.VertexRagServiceClient.md.txt#Google_Cloud_AIPlatform_V1_VertexRagServiceClient_AugmentPromptAsync_System_String_Google_Cloud_AIPlatform_V1_AugmentPromptRequest_Types_Model_Google_Cloud_AIPlatform_V1_VertexRagStore_System_Threading_CancellationToken_) [VertexRagServiceClient.AugmentPrompt(LocationName, AugmentPromptRequest.Types.Model, VertexRagStore, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1/latest/Google.Cloud.AIPlatform.V1.VertexRagServiceClient.md.txt#Google_Cloud_AIPlatform_V1_VertexRagServiceClient_AugmentPrompt_Google_Api_Gax_ResourceNames_LocationName_Google_Cloud_AIPlatform_V1_AugmentPromptRequest_Types_Model_Google_Cloud_AIPlatform_V1_VertexRagStore_Google_Api_Gax_Grpc_CallSettings_) [VertexRagServiceClient.AugmentPromptAsync(LocationName, AugmentPromptRequest.Types.Model, VertexRagStore, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1/latest/Google.Cloud.AIPlatform.V1.VertexRagServiceClient.md.txt#Google_Cloud_AIPlatform_V1_VertexRagServiceClient_AugmentPromptAsync_Google_Api_Gax_ResourceNames_LocationName_Google_Cloud_AIPlatform_V1_AugmentPromptRequest_Types_Model_Google_Cloud_AIPlatform_V1_VertexRagStore_Google_Api_Gax_Grpc_CallSettings_) [VertexRagServiceClient.AugmentPromptAsync(LocationName, AugmentPromptRequest.Types.Model, VertexRagStore, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1/latest/Google.Cloud.AIPlatform.V1.VertexRagServiceClient.md.txt#Google_Cloud_AIPlatform_V1_VertexRagServiceClient_AugmentPromptAsync_Google_Api_Gax_ResourceNames_LocationName_Google_Cloud_AIPlatform_V1_AugmentPromptRequest_Types_Model_Google_Cloud_AIPlatform_V1_VertexRagStore_System_Threading_CancellationToken_) [VertexRagServiceClient.CorroborateContentAsync(CorroborateContentRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1/latest/Google.Cloud.AIPlatform.V1.VertexRagServiceClient.md.txt#Google_Cloud_AIPlatform_V1_VertexRagServiceClient_CorroborateContentAsync_Google_Cloud_AIPlatform_V1_CorroborateContentRequest_System_Threading_CancellationToken_) [VertexRagServiceClient.CorroborateContent(string, Content, IEnumerable\<Fact\>, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1/latest/Google.Cloud.AIPlatform.V1.VertexRagServiceClient.md.txt#Google_Cloud_AIPlatform_V1_VertexRagServiceClient_CorroborateContent_System_String_Google_Cloud_AIPlatform_V1_Content_System_Collections_Generic_IEnumerable_Google_Cloud_AIPlatform_V1_Fact__Google_Api_Gax_Grpc_CallSettings_) [VertexRagServiceClient.CorroborateContentAsync(string, Content, IEnumerable\<Fact\>, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1/latest/Google.Cloud.AIPlatform.V1.VertexRagServiceClient.md.txt#Google_Cloud_AIPlatform_V1_VertexRagServiceClient_CorroborateContentAsync_System_String_Google_Cloud_AIPlatform_V1_Content_System_Collections_Generic_IEnumerable_Google_Cloud_AIPlatform_V1_Fact__Google_Api_Gax_Grpc_CallSettings_) [VertexRagServiceClient.CorroborateContentAsync(string, Content, IEnumerable\<Fact\>, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1/latest/Google.Cloud.AIPlatform.V1.VertexRagServiceClient.md.txt#Google_Cloud_AIPlatform_V1_VertexRagServiceClient_CorroborateContentAsync_System_String_Google_Cloud_AIPlatform_V1_Content_System_Collections_Generic_IEnumerable_Google_Cloud_AIPlatform_V1_Fact__System_Threading_CancellationToken_) [VertexRagServiceClient.CorroborateContent(LocationName, Content, IEnumerable\<Fact\>, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1/latest/Google.Cloud.AIPlatform.V1.VertexRagServiceClient.md.txt#Google_Cloud_AIPlatform_V1_VertexRagServiceClient_CorroborateContent_Google_Api_Gax_ResourceNames_LocationName_Google_Cloud_AIPlatform_V1_Content_System_Collections_Generic_IEnumerable_Google_Cloud_AIPlatform_V1_Fact__Google_Api_Gax_Grpc_CallSettings_) [VertexRagServiceClient.CorroborateContentAsync(LocationName, Content, IEnumerable\<Fact\>, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1/latest/Google.Cloud.AIPlatform.V1.VertexRagServiceClient.md.txt#Google_Cloud_AIPlatform_V1_VertexRagServiceClient_CorroborateContentAsync_Google_Api_Gax_ResourceNames_LocationName_Google_Cloud_AIPlatform_V1_Content_System_Collections_Generic_IEnumerable_Google_Cloud_AIPlatform_V1_Fact__Google_Api_Gax_Grpc_CallSettings_) [VertexRagServiceClient.CorroborateContentAsync(LocationName, Content, IEnumerable\<Fact\>, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1/latest/Google.Cloud.AIPlatform.V1.VertexRagServiceClient.md.txt#Google_Cloud_AIPlatform_V1_VertexRagServiceClient_CorroborateContentAsync_Google_Api_Gax_ResourceNames_LocationName_Google_Cloud_AIPlatform_V1_Content_System_Collections_Generic_IEnumerable_Google_Cloud_AIPlatform_V1_Fact__System_Threading_CancellationToken_) [VertexRagServiceClient.AskContextsAsync(AskContextsRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1/latest/Google.Cloud.AIPlatform.V1.VertexRagServiceClient.md.txt#Google_Cloud_AIPlatform_V1_VertexRagServiceClient_AskContextsAsync_Google_Cloud_AIPlatform_V1_AskContextsRequest_System_Threading_CancellationToken_) [VertexRagServiceClient.AskContexts(string, RagQuery, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1/latest/Google.Cloud.AIPlatform.V1.VertexRagServiceClient.md.txt#Google_Cloud_AIPlatform_V1_VertexRagServiceClient_AskContexts_System_String_Google_Cloud_AIPlatform_V1_RagQuery_Google_Api_Gax_Grpc_CallSettings_) [VertexRagServiceClient.AskContextsAsync(string, RagQuery, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1/latest/Google.Cloud.AIPlatform.V1.VertexRagServiceClient.md.txt#Google_Cloud_AIPlatform_V1_VertexRagServiceClient_AskContextsAsync_System_String_Google_Cloud_AIPlatform_V1_RagQuery_Google_Api_Gax_Grpc_CallSettings_) [VertexRagServiceClient.AskContextsAsync(string, RagQuery, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1/latest/Google.Cloud.AIPlatform.V1.VertexRagServiceClient.md.txt#Google_Cloud_AIPlatform_V1_VertexRagServiceClient_AskContextsAsync_System_String_Google_Cloud_AIPlatform_V1_RagQuery_System_Threading_CancellationToken_) [VertexRagServiceClient.AskContexts(LocationName, RagQuery, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1/latest/Google.Cloud.AIPlatform.V1.VertexRagServiceClient.md.txt#Google_Cloud_AIPlatform_V1_VertexRagServiceClient_AskContexts_Google_Api_Gax_ResourceNames_LocationName_Google_Cloud_AIPlatform_V1_RagQuery_Google_Api_Gax_Grpc_CallSettings_) [VertexRagServiceClient.AskContextsAsync(LocationName, RagQuery, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1/latest/Google.Cloud.AIPlatform.V1.VertexRagServiceClient.md.txt#Google_Cloud_AIPlatform_V1_VertexRagServiceClient_AskContextsAsync_Google_Api_Gax_ResourceNames_LocationName_Google_Cloud_AIPlatform_V1_RagQuery_Google_Api_Gax_Grpc_CallSettings_) [VertexRagServiceClient.AskContextsAsync(LocationName, RagQuery, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1/latest/Google.Cloud.AIPlatform.V1.VertexRagServiceClient.md.txt#Google_Cloud_AIPlatform_V1_VertexRagServiceClient_AskContextsAsync_Google_Api_Gax_ResourceNames_LocationName_Google_Cloud_AIPlatform_V1_RagQuery_System_Threading_CancellationToken_) [VertexRagServiceClient.AsyncRetrieveContextsAsync(AsyncRetrieveContextsRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1/latest/Google.Cloud.AIPlatform.V1.VertexRagServiceClient.md.txt#Google_Cloud_AIPlatform_V1_VertexRagServiceClient_AsyncRetrieveContextsAsync_Google_Cloud_AIPlatform_V1_AsyncRetrieveContextsRequest_System_Threading_CancellationToken_) [VertexRagServiceClient.PollOnceAsyncRetrieveContexts(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1/latest/Google.Cloud.AIPlatform.V1.VertexRagServiceClient.md.txt#Google_Cloud_AIPlatform_V1_VertexRagServiceClient_PollOnceAsyncRetrieveContexts_System_String_Google_Api_Gax_Grpc_CallSettings_) [VertexRagServiceClient.PollOnceAsyncRetrieveContextsAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1/latest/Google.Cloud.AIPlatform.V1.VertexRagServiceClient.md.txt#Google_Cloud_AIPlatform_V1_VertexRagServiceClient_PollOnceAsyncRetrieveContextsAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [VertexRagServiceClient.AsyncRetrieveContexts(string, RagQuery, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1/latest/Google.Cloud.AIPlatform.V1.VertexRagServiceClient.md.txt#Google_Cloud_AIPlatform_V1_VertexRagServiceClient_AsyncRetrieveContexts_System_String_Google_Cloud_AIPlatform_V1_RagQuery_Google_Api_Gax_Grpc_CallSettings_) [VertexRagServiceClient.AsyncRetrieveContextsAsync(string, RagQuery, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1/latest/Google.Cloud.AIPlatform.V1.VertexRagServiceClient.md.txt#Google_Cloud_AIPlatform_V1_VertexRagServiceClient_AsyncRetrieveContextsAsync_System_String_Google_Cloud_AIPlatform_V1_RagQuery_Google_Api_Gax_Grpc_CallSettings_) [VertexRagServiceClient.AsyncRetrieveContextsAsync(string, RagQuery, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1/latest/Google.Cloud.AIPlatform.V1.VertexRagServiceClient.md.txt#Google_Cloud_AIPlatform_V1_VertexRagServiceClient_AsyncRetrieveContextsAsync_System_String_Google_Cloud_AIPlatform_V1_RagQuery_System_Threading_CancellationToken_) [VertexRagServiceClient.AsyncRetrieveContexts(LocationName, RagQuery, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1/latest/Google.Cloud.AIPlatform.V1.VertexRagServiceClient.md.txt#Google_Cloud_AIPlatform_V1_VertexRagServiceClient_AsyncRetrieveContexts_Google_Api_Gax_ResourceNames_LocationName_Google_Cloud_AIPlatform_V1_RagQuery_Google_Api_Gax_Grpc_CallSettings_) [VertexRagServiceClient.AsyncRetrieveContextsAsync(LocationName, RagQuery, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1/latest/Google.Cloud.AIPlatform.V1.VertexRagServiceClient.md.txt#Google_Cloud_AIPlatform_V1_VertexRagServiceClient_AsyncRetrieveContextsAsync_Google_Api_Gax_ResourceNames_LocationName_Google_Cloud_AIPlatform_V1_RagQuery_Google_Api_Gax_Grpc_CallSettings_) [VertexRagServiceClient.AsyncRetrieveContextsAsync(LocationName, RagQuery, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1/latest/Google.Cloud.AIPlatform.V1.VertexRagServiceClient.md.txt#Google_Cloud_AIPlatform_V1_VertexRagServiceClient_AsyncRetrieveContextsAsync_Google_Api_Gax_ResourceNames_LocationName_Google_Cloud_AIPlatform_V1_RagQuery_System_Threading_CancellationToken_) [object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.AIPlatform.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1/latest/Google.Cloud.AIPlatform.V1.md.txt)

## Assembly

Google.Cloud.AIPlatform.V1.dll

## Remarks

A service for retrieving relevant contexts.

## Constructors

### VertexRagServiceClientImpl(VertexRagServiceClient, VertexRagServiceSettings, ILogger)

    public VertexRagServiceClientImpl(VertexRagService.VertexRagServiceClient grpcClient, VertexRagServiceSettings settings, ILogger logger)

Constructs a client wrapper for the VertexRagService service, with the specified gRPC client and settings.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `grpcClient` | `VertexRagServiceVertexRagServiceClient` The underlying gRPC client. |
| `settings` | `VertexRagServiceSettings` The base [VertexRagServiceSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1/latest/Google.Cloud.AIPlatform.V1.VertexRagServiceSettings.md.txt) used within this client. |
| `logger` | `ILogger` Optional [ILogger](https://learn.microsoft.com/dotnet/api/microsoft.extensions.logging.ilogger) to use within this client. |

## Properties

### AsyncRetrieveContextsOperationsClient

    public override OperationsClient AsyncRetrieveContextsOperationsClient { get; }

The long-running operations client for `AsyncRetrieveContexts`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `OperationsClient` |   |

**Overrides** [VertexRagServiceClient.AsyncRetrieveContextsOperationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1/latest/Google.Cloud.AIPlatform.V1.VertexRagServiceClient.md.txt#Google_Cloud_AIPlatform_V1_VertexRagServiceClient_AsyncRetrieveContextsOperationsClient)

### GrpcClient

    public override VertexRagService.VertexRagServiceClient GrpcClient { get; }

The underlying gRPC VertexRagService client

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `VertexRagServiceVertexRagServiceClient` |   |

**Overrides** [VertexRagServiceClient.GrpcClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1/latest/Google.Cloud.AIPlatform.V1.VertexRagServiceClient.md.txt#Google_Cloud_AIPlatform_V1_VertexRagServiceClient_GrpcClient)

### IAMPolicyClient

    public override IAMPolicyClient IAMPolicyClient { get; }

The [IAMPolicyClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.IAMPolicyClient.md.txt) associated with this client.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `IAMPolicyClient` |   |

**Overrides** [VertexRagServiceClient.IAMPolicyClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1/latest/Google.Cloud.AIPlatform.V1.VertexRagServiceClient.md.txt#Google_Cloud_AIPlatform_V1_VertexRagServiceClient_IAMPolicyClient)

### LocationsClient

    public override LocationsClient LocationsClient { get; }

The [LocationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Location/latest/Google.Cloud.Location.LocationsClient.md.txt) associated with this client.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `LocationsClient` |   |

**Overrides** [VertexRagServiceClient.LocationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1/latest/Google.Cloud.AIPlatform.V1.VertexRagServiceClient.md.txt#Google_Cloud_AIPlatform_V1_VertexRagServiceClient_LocationsClient)

## Methods

### AskContexts(AskContextsRequest, CallSettings)

    public override AskContextsResponse AskContexts(AskContextsRequest request, CallSettings callSettings = null)

Agentic Retrieval Ask API for RAG.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `AskContextsRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AskContextsResponse` | The RPC response. |

**Overrides** [VertexRagServiceClient.AskContexts(AskContextsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1/latest/Google.Cloud.AIPlatform.V1.VertexRagServiceClient.md.txt#Google_Cloud_AIPlatform_V1_VertexRagServiceClient_AskContexts_Google_Cloud_AIPlatform_V1_AskContextsRequest_Google_Api_Gax_Grpc_CallSettings_)

### AskContextsAsync(AskContextsRequest, CallSettings)

    public override Task<AskContextsResponse> AskContextsAsync(AskContextsRequest request, CallSettings callSettings = null)

Agentic Retrieval Ask API for RAG.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `AskContextsRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskAskContextsResponse` | A Task containing the RPC response. |

**Overrides** [VertexRagServiceClient.AskContextsAsync(AskContextsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1/latest/Google.Cloud.AIPlatform.V1.VertexRagServiceClient.md.txt#Google_Cloud_AIPlatform_V1_VertexRagServiceClient_AskContextsAsync_Google_Cloud_AIPlatform_V1_AskContextsRequest_Google_Api_Gax_Grpc_CallSettings_)

### AsyncRetrieveContexts(AsyncRetrieveContextsRequest, CallSettings)

    public override Operation<AsyncRetrieveContextsResponse, AsyncRetrieveContextsOperationMetadata> AsyncRetrieveContexts(AsyncRetrieveContextsRequest request, CallSettings callSettings = null)

Asynchronous API to retrieves relevant contexts for a query.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `AsyncRetrieveContextsRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationAsyncRetrieveContextsResponseAsyncRetrieveContextsOperationMetadata` | The RPC response. |

**Overrides** [VertexRagServiceClient.AsyncRetrieveContexts(AsyncRetrieveContextsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1/latest/Google.Cloud.AIPlatform.V1.VertexRagServiceClient.md.txt#Google_Cloud_AIPlatform_V1_VertexRagServiceClient_AsyncRetrieveContexts_Google_Cloud_AIPlatform_V1_AsyncRetrieveContextsRequest_Google_Api_Gax_Grpc_CallSettings_)

### AsyncRetrieveContextsAsync(AsyncRetrieveContextsRequest, CallSettings)

    public override Task<Operation<AsyncRetrieveContextsResponse, AsyncRetrieveContextsOperationMetadata>> AsyncRetrieveContextsAsync(AsyncRetrieveContextsRequest request, CallSettings callSettings = null)

Asynchronous API to retrieves relevant contexts for a query.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `AsyncRetrieveContextsRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationAsyncRetrieveContextsResponseAsyncRetrieveContextsOperationMetadata` | A Task containing the RPC response. |

**Overrides** [VertexRagServiceClient.AsyncRetrieveContextsAsync(AsyncRetrieveContextsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1/latest/Google.Cloud.AIPlatform.V1.VertexRagServiceClient.md.txt#Google_Cloud_AIPlatform_V1_VertexRagServiceClient_AsyncRetrieveContextsAsync_Google_Cloud_AIPlatform_V1_AsyncRetrieveContextsRequest_Google_Api_Gax_Grpc_CallSettings_)

### AugmentPrompt(AugmentPromptRequest, CallSettings)

    public override AugmentPromptResponse AugmentPrompt(AugmentPromptRequest request, CallSettings callSettings = null)

Given an input prompt, it returns augmented prompt from vertex rag store
to guide LLM towards generating grounded responses.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `AugmentPromptRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AugmentPromptResponse` | The RPC response. |

**Overrides** [VertexRagServiceClient.AugmentPrompt(AugmentPromptRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1/latest/Google.Cloud.AIPlatform.V1.VertexRagServiceClient.md.txt#Google_Cloud_AIPlatform_V1_VertexRagServiceClient_AugmentPrompt_Google_Cloud_AIPlatform_V1_AugmentPromptRequest_Google_Api_Gax_Grpc_CallSettings_)

### AugmentPromptAsync(AugmentPromptRequest, CallSettings)

    public override Task<AugmentPromptResponse> AugmentPromptAsync(AugmentPromptRequest request, CallSettings callSettings = null)

Given an input prompt, it returns augmented prompt from vertex rag store
to guide LLM towards generating grounded responses.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `AugmentPromptRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskAugmentPromptResponse` | A Task containing the RPC response. |

**Overrides** [VertexRagServiceClient.AugmentPromptAsync(AugmentPromptRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1/latest/Google.Cloud.AIPlatform.V1.VertexRagServiceClient.md.txt#Google_Cloud_AIPlatform_V1_VertexRagServiceClient_AugmentPromptAsync_Google_Cloud_AIPlatform_V1_AugmentPromptRequest_Google_Api_Gax_Grpc_CallSettings_)

### CorroborateContent(CorroborateContentRequest, CallSettings)

    public override CorroborateContentResponse CorroborateContent(CorroborateContentRequest request, CallSettings callSettings = null)

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.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `CorroborateContentRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `CorroborateContentResponse` | The RPC response. |

**Overrides** [VertexRagServiceClient.CorroborateContent(CorroborateContentRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1/latest/Google.Cloud.AIPlatform.V1.VertexRagServiceClient.md.txt#Google_Cloud_AIPlatform_V1_VertexRagServiceClient_CorroborateContent_Google_Cloud_AIPlatform_V1_CorroborateContentRequest_Google_Api_Gax_Grpc_CallSettings_)

### CorroborateContentAsync(CorroborateContentRequest, CallSettings)

    public override Task<CorroborateContentResponse> CorroborateContentAsync(CorroborateContentRequest request, CallSettings callSettings = null)

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.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `CorroborateContentRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskCorroborateContentResponse` | A Task containing the RPC response. |

**Overrides** [VertexRagServiceClient.CorroborateContentAsync(CorroborateContentRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1/latest/Google.Cloud.AIPlatform.V1.VertexRagServiceClient.md.txt#Google_Cloud_AIPlatform_V1_VertexRagServiceClient_CorroborateContentAsync_Google_Cloud_AIPlatform_V1_CorroborateContentRequest_Google_Api_Gax_Grpc_CallSettings_)

### RetrieveContexts(RetrieveContextsRequest, CallSettings)

    public override RetrieveContextsResponse RetrieveContexts(RetrieveContextsRequest request, CallSettings callSettings = null)

Retrieves relevant contexts for a query.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `RetrieveContextsRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `RetrieveContextsResponse` | The RPC response. |

**Overrides** [VertexRagServiceClient.RetrieveContexts(RetrieveContextsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1/latest/Google.Cloud.AIPlatform.V1.VertexRagServiceClient.md.txt#Google_Cloud_AIPlatform_V1_VertexRagServiceClient_RetrieveContexts_Google_Cloud_AIPlatform_V1_RetrieveContextsRequest_Google_Api_Gax_Grpc_CallSettings_)

### RetrieveContextsAsync(RetrieveContextsRequest, CallSettings)

    public override Task<RetrieveContextsResponse> RetrieveContextsAsync(RetrieveContextsRequest request, CallSettings callSettings = null)

Retrieves relevant contexts for a query.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `RetrieveContextsRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskRetrieveContextsResponse` | A Task containing the RPC response. |

**Overrides** [VertexRagServiceClient.RetrieveContextsAsync(RetrieveContextsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1/latest/Google.Cloud.AIPlatform.V1.VertexRagServiceClient.md.txt#Google_Cloud_AIPlatform_V1_VertexRagServiceClient_RetrieveContextsAsync_Google_Cloud_AIPlatform_V1_RetrieveContextsRequest_Google_Api_Gax_Grpc_CallSettings_)