[BindServiceMethod(typeof(DataChatService), "BindService")]
public abstract class DataChatService.DataChatServiceBase
Reference documentation and code samples for the Data Analytics API with Gemini v1beta API class DataChatService.DataChatServiceBase.
Base class for server-side implementations of DataChatService
Namespace
Google.Cloud.GeminiDataAnalytics.V1BetaAssembly
Google.Cloud.GeminiDataAnalytics.V1Beta.dll
Methods
Chat(ChatRequest, IServerStreamWriter<Message>, ServerCallContext)
public virtual Task Chat(ChatRequest request, IServerStreamWriter<Message> responseStream, ServerCallContext context)
Answers a data question by generating a stream of [Message]s.
Parameters | |
---|---|
Name | Description |
request |
ChatRequest The request received from the client. |
responseStream |
IServerStreamWriterMessage 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. |
CreateConversation(CreateConversationRequest, ServerCallContext)
public virtual Task<Conversation> CreateConversation(CreateConversationRequest request, ServerCallContext context)
Creates a new conversation to persist the conversation history. Each conversation will have multiple messages associated with it.
Parameters | |
---|---|
Name | Description |
request |
CreateConversationRequest The request received from the client. |
context |
ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
TaskConversation |
The response to send back to the client (wrapped by a task). |
GetConversation(GetConversationRequest, ServerCallContext)
public virtual Task<Conversation> GetConversation(GetConversationRequest request, ServerCallContext context)
Gets details of a single conversation using conversation id and parent.
Parameters | |
---|---|
Name | Description |
request |
GetConversationRequest The request received from the client. |
context |
ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
TaskConversation |
The response to send back to the client (wrapped by a task). |
ListConversations(ListConversationsRequest, ServerCallContext)
public virtual Task<ListConversationsResponse> ListConversations(ListConversationsRequest request, ServerCallContext context)
Lists all conversations for a given parent.
Parameters | |
---|---|
Name | Description |
request |
ListConversationsRequest The request received from the client. |
context |
ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
TaskListConversationsResponse |
The response to send back to the client (wrapped by a task). |
ListMessages(ListMessagesRequest, ServerCallContext)
public virtual Task<ListMessagesResponse> ListMessages(ListMessagesRequest request, ServerCallContext context)
Lists all messages for a given conversation.
Parameters | |
---|---|
Name | Description |
request |
ListMessagesRequest The request received from the client. |
context |
ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
TaskListMessagesResponse |
The response to send back to the client (wrapped by a task). |