Discovery Engine v1beta API - Class GroundedGenerationService.GroundedGenerationServiceBase (1.0.0-beta18)

[BindServiceMethod(typeof(GroundedGenerationService), "BindService")]
public abstract class GroundedGenerationService.GroundedGenerationServiceBase

Reference documentation and code samples for the Discovery Engine v1beta API class GroundedGenerationService.GroundedGenerationServiceBase.

Base class for server-side implementations of GroundedGenerationService

Inheritance

object > GroundedGenerationService.GroundedGenerationServiceBase

Namespace

Google.Cloud.DiscoveryEngine.V1Beta

Assembly

Google.Cloud.DiscoveryEngine.V1Beta.dll

Methods

CheckGrounding(CheckGroundingRequest, ServerCallContext)

public virtual Task<CheckGroundingResponse> CheckGrounding(CheckGroundingRequest request, ServerCallContext context)

Performs a grounding check.

Parameters
Name Description
request CheckGroundingRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskCheckGroundingResponse

The response to send back to the client (wrapped by a task).

GenerateGroundedContent(GenerateGroundedContentRequest, ServerCallContext)

public virtual Task<GenerateGroundedContentResponse> GenerateGroundedContent(GenerateGroundedContentRequest request, ServerCallContext context)

Generates grounded content.

Parameters
Name Description
request GenerateGroundedContentRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskGenerateGroundedContentResponse

The response to send back to the client (wrapped by a task).

StreamGenerateGroundedContent(IAsyncStreamReader<GenerateGroundedContentRequest>, IServerStreamWriter<GenerateGroundedContentResponse>, ServerCallContext)

public virtual Task StreamGenerateGroundedContent(IAsyncStreamReader<GenerateGroundedContentRequest> requestStream, IServerStreamWriter<GenerateGroundedContentResponse> responseStream, ServerCallContext context)

Generates grounded content in a streaming fashion.

Parameters
Name Description
requestStream IAsyncStreamReaderGenerateGroundedContentRequest

Used for reading requests from the client.

responseStream IServerStreamWriterGenerateGroundedContentResponse

Used for sending responses back to the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
Task

A task indicating completion of the handler.