[BindServiceMethod(typeof(DataA2AService), "BindService")]
public abstract class DataA2AService.DataA2AServiceBaseReference documentation and code samples for the Data Analytics API with Gemini v1beta API class DataA2AService.DataA2AServiceBase.
Base class for server-side implementations of DataA2AService
Namespace
Google.Cloud.GeminiDataAnalytics.V1BetaAssembly
Google.Cloud.GeminiDataAnalytics.V1Beta.dll
Methods
GetAgentCard(GetAgentCardRequest, ServerCallContext)
public virtual Task<AgentCard> GetAgentCard(GetAgentCardRequest request, ServerCallContext context)GetAgentCard returns the agent card for the agent.
| Parameters | |
|---|---|
| Name | Description |
request |
GetAgentCardRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskAgentCard |
The response to send back to the client (wrapped by a task). |
SendMessage(SendMessageRequest, ServerCallContext)
public virtual Task<SendMessageResponse> SendMessage(SendMessageRequest request, ServerCallContext context)Send a message to the agent. This is a blocking call that will return the task once it is completed.
| Parameters | |
|---|---|
| Name | Description |
request |
SendMessageRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskSendMessageResponse |
The response to send back to the client (wrapped by a task). |
SendStreamingMessage(SendMessageRequest, IServerStreamWriter<StreamResponse>, ServerCallContext)
public virtual Task SendStreamingMessage(SendMessageRequest request, IServerStreamWriter<StreamResponse> responseStream, ServerCallContext context)SendStreamingMessage is a streaming call that will return a stream of task update events until the Task is in an interrupted or terminal state.
| Parameters | |
|---|---|
| Name | Description |
request |
SendMessageRequestThe request received from the client. |
responseStream |
IServerStreamWriterStreamResponseUsed 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. |