Gemini Enterprise for Customer Experience v1 API - Class ToolService.ToolServiceBase (1.0.0-beta01)

[BindServiceMethod(typeof(ToolService), "BindService")]
public abstract class ToolService.ToolServiceBase

Reference documentation and code samples for the Gemini Enterprise for Customer Experience v1 API class ToolService.ToolServiceBase.

Base class for server-side implementations of ToolService

Inheritance

object > ToolService.ToolServiceBase

Namespace

Google.Cloud.Ces.V1

Assembly

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 ExecuteToolRequest

The request received from the client.

context ServerCallContext

The 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 RetrieveToolSchemaRequest

The request received from the client.

context ServerCallContext

The 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 RetrieveToolsRequest

The request received from the client.

context ServerCallContext

The 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).