Vertex AI V1 API - Class Google::Cloud::AIPlatform::V1::VertexRagService::Rest::ServiceStub (v0.60.0)

Reference documentation and code samples for the Vertex AI V1 API class Google::Cloud::AIPlatform::V1::VertexRagService::Rest::ServiceStub.

REST service stub for the VertexRagService service. Service stub contains baseline method implementations including transcoding, making the REST call, and deserialing the response.

Inherits

  • Object

Methods

#augment_prompt

def augment_prompt(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::AIPlatform::V1::AugmentPromptResponse

Baseline implementation for the augment_prompt REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#corroborate_content

def corroborate_content(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::AIPlatform::V1::CorroborateContentResponse

Baseline implementation for the corroborate_content REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#endpoint

def endpoint() -> String

The effective endpoint

Returns
  • (String)

#initialize

def initialize(endpoint:, endpoint_template:, universe_domain:, credentials:) -> ServiceStub
Returns

#retrieve_contexts

def retrieve_contexts(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::AIPlatform::V1::RetrieveContextsResponse

Baseline implementation for the retrieve_contexts REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#universe_domain

def universe_domain() -> String

The effective universe domain

Returns
  • (String)