Class protos.google.cloud.aiplatform.v1.VertexRagService (5.13.0)

Represents a VertexRagService

Inheritance

$protobuf.rpc.Service > protos.google.cloud.aiplatform.v1.VertexRagService

Package

@google-cloud/aiplatform

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);

Constructs a new VertexRagService service.

Parameters
Name Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

augmentPrompt(request, callback)

public augmentPrompt(request: google.cloud.aiplatform.v1.IAugmentPromptRequest, callback: google.cloud.aiplatform.v1.VertexRagService.AugmentPromptCallback): void;

Calls AugmentPrompt.

Parameters
Name Description
request IAugmentPromptRequest

AugmentPromptRequest message or plain object

callback AugmentPromptCallback

Node-style callback called with the error, if any, and AugmentPromptResponse

Returns
Type Description
void

augmentPrompt(request)

public augmentPrompt(request: google.cloud.aiplatform.v1.IAugmentPromptRequest): Promise<google.cloud.aiplatform.v1.AugmentPromptResponse>;

Calls AugmentPrompt.

Parameter
Name Description
request IAugmentPromptRequest

AugmentPromptRequest message or plain object

Returns
Type Description
Promise<google.cloud.aiplatform.v1.AugmentPromptResponse>

Promise

corroborateContent(request, callback)

public corroborateContent(request: google.cloud.aiplatform.v1.ICorroborateContentRequest, callback: google.cloud.aiplatform.v1.VertexRagService.CorroborateContentCallback): void;

Calls CorroborateContent.

Parameters
Name Description
request ICorroborateContentRequest

CorroborateContentRequest message or plain object

callback CorroborateContentCallback

Node-style callback called with the error, if any, and CorroborateContentResponse

Returns
Type Description
void

corroborateContent(request)

public corroborateContent(request: google.cloud.aiplatform.v1.ICorroborateContentRequest): Promise<google.cloud.aiplatform.v1.CorroborateContentResponse>;

Calls CorroborateContent.

Parameter
Name Description
request ICorroborateContentRequest

CorroborateContentRequest message or plain object

Returns
Type Description
Promise<google.cloud.aiplatform.v1.CorroborateContentResponse>

Promise

create(rpcImpl, requestDelimited, responseDelimited)

public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): VertexRagService;

Creates new VertexRagService service using the specified rpc implementation.

Parameters
Name Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
Type Description
VertexRagService

RPC service. Useful where requests and/or responses are streamed.

retrieveContexts(request, callback)

public retrieveContexts(request: google.cloud.aiplatform.v1.IRetrieveContextsRequest, callback: google.cloud.aiplatform.v1.VertexRagService.RetrieveContextsCallback): void;

Calls RetrieveContexts.

Parameters
Name Description
request IRetrieveContextsRequest

RetrieveContextsRequest message or plain object

callback RetrieveContextsCallback

Node-style callback called with the error, if any, and RetrieveContextsResponse

Returns
Type Description
void

retrieveContexts(request)

public retrieveContexts(request: google.cloud.aiplatform.v1.IRetrieveContextsRequest): Promise<google.cloud.aiplatform.v1.RetrieveContextsResponse>;

Calls RetrieveContexts.

Parameter
Name Description
request IRetrieveContextsRequest

RetrieveContextsRequest message or plain object

Returns
Type Description
Promise<google.cloud.aiplatform.v1.RetrieveContextsResponse>

Promise