[BindServiceMethod(typeof(GroundedGenerationService), "BindService")]
public abstract class GroundedGenerationService.GroundedGenerationServiceBaseReference documentation and code samples for the Discovery Engine v1 API class GroundedGenerationService.GroundedGenerationServiceBase.
Base class for server-side implementations of GroundedGenerationService
Namespace
Google.Cloud.DiscoveryEngine.V1Assembly
Google.Cloud.DiscoveryEngine.V1.dll
Methods
CheckGrounding(CheckGroundingRequest, ServerCallContext)
public virtual Task<CheckGroundingResponse> CheckGrounding(CheckGroundingRequest request, ServerCallContext context)Performs a grounding check.
| Parameters | |
|---|---|
| Name | Description |
request |
CheckGroundingRequestThe request received from the client. |
context |
ServerCallContextThe 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 |
GenerateGroundedContentRequestThe request received from the client. |
context |
ServerCallContextThe 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 |
IAsyncStreamReaderGenerateGroundedContentRequestUsed for reading requests from the client. |
responseStream |
IServerStreamWriterGenerateGroundedContentResponseUsed for sending responses back to the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
Task |
A task indicating completion of the handler. |