[BindServiceMethod(typeof(ToolService), "BindService")]
public abstract class ToolService.ToolServiceBaseReference documentation and code samples for the Gemini Enterprise for Customer Experience v1 API class ToolService.ToolServiceBase.
Base class for server-side implementations of ToolService
Namespace
Google.Cloud.Ces.V1Assembly
Google.Cloud.Ces.V1.dll
Methods
ExecuteTool(ExecuteToolRequest, ServerCallContext)
public virtual Task<ExecuteToolResponse> ExecuteTool(ExecuteToolRequest request, ServerCallContext context)Executes the given tool with the given arguments.
| Parameters | |
|---|---|
| Name | Description |
request |
ExecuteToolRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskExecuteToolResponse |
The response to send back to the client (wrapped by a task). |
RetrieveToolSchema(RetrieveToolSchemaRequest, ServerCallContext)
public virtual Task<RetrieveToolSchemaResponse> RetrieveToolSchema(RetrieveToolSchemaRequest request, ServerCallContext context)Retrieve the schema of the given tool. The schema is computed on the fly for the given instance of the tool.
| Parameters | |
|---|---|
| Name | Description |
request |
RetrieveToolSchemaRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskRetrieveToolSchemaResponse |
The response to send back to the client (wrapped by a task). |
RetrieveTools(RetrieveToolsRequest, ServerCallContext)
public virtual Task<RetrieveToolsResponse> RetrieveTools(RetrieveToolsRequest request, ServerCallContext context)Retrieve the list of tools included in the specified toolset.
| Parameters | |
|---|---|
| Name | Description |
request |
RetrieveToolsRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskRetrieveToolsResponse |
The response to send back to the client (wrapped by a task). |