Google Cloud Dialogflow v2beta1 API - Class ToolsClientImpl (1.0.0-beta24)

public sealed class ToolsClientImpl : ToolsClient

Reference documentation and code samples for the Google Cloud Dialogflow v2beta1 API class ToolsClientImpl.

Tools client wrapper implementation, for convenient use.

Inheritance

object > ToolsClient > ToolsClientImpl

Namespace

Google.Cloud.Dialogflow.V2Beta1

Assembly

Google.Cloud.Dialogflow.V2Beta1.dll

Remarks

Tool Service for LLM powered Agent Assist. Tools can be used to interact with remote APIs (e.g. fetching orders) to retrieve additional information as input to LLM.

Constructors

ToolsClientImpl(ToolsClient, ToolsSettings, ILogger)

public ToolsClientImpl(Tools.ToolsClient grpcClient, ToolsSettings settings, ILogger logger)

Constructs a client wrapper for the Tools service, with the specified gRPC client and settings.

Parameters
Name Description
grpcClient ToolsToolsClient

The underlying gRPC client.

settings ToolsSettings

The base ToolsSettings used within this client.

logger ILogger

Optional ILogger to use within this client.

Properties

GrpcClient

public override Tools.ToolsClient GrpcClient { get; }

The underlying gRPC Tools client

Property Value
Type Description
ToolsToolsClient
Overrides

LocationsClient

public override LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
Type Description
LocationsClient
Overrides

Methods

CreateTool(CreateToolRequest, CallSettings)

public override Tool CreateTool(CreateToolRequest request, CallSettings callSettings = null)

Creates a tool.

Parameters
Name Description
request CreateToolRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Tool

The RPC response.

Overrides

CreateToolAsync(CreateToolRequest, CallSettings)

public override Task<Tool> CreateToolAsync(CreateToolRequest request, CallSettings callSettings = null)

Creates a tool.

Parameters
Name Description
request CreateToolRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskTool

A Task containing the RPC response.

Overrides

DeleteTool(DeleteToolRequest, CallSettings)

public override void DeleteTool(DeleteToolRequest request, CallSettings callSettings = null)

Deletes a tool.

Parameters
Name Description
request DeleteToolRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Overrides

DeleteToolAsync(DeleteToolRequest, CallSettings)

public override Task DeleteToolAsync(DeleteToolRequest request, CallSettings callSettings = null)

Deletes a tool.

Parameters
Name Description
request DeleteToolRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Overrides

GetTool(GetToolRequest, CallSettings)

public override Tool GetTool(GetToolRequest request, CallSettings callSettings = null)

Retrieves a tool.

Parameters
Name Description
request GetToolRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Tool

The RPC response.

Overrides

GetToolAsync(GetToolRequest, CallSettings)

public override Task<Tool> GetToolAsync(GetToolRequest request, CallSettings callSettings = null)

Retrieves a tool.

Parameters
Name Description
request GetToolRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskTool

A Task containing the RPC response.

Overrides

ListTools(ListToolsRequest, CallSettings)

public override PagedEnumerable<ListToolsResponse, Tool> ListTools(ListToolsRequest request, CallSettings callSettings = null)

Lists tools.

Parameters
Name Description
request ListToolsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListToolsResponseTool

A pageable sequence of Tool resources.

Overrides

ListToolsAsync(ListToolsRequest, CallSettings)

public override PagedAsyncEnumerable<ListToolsResponse, Tool> ListToolsAsync(ListToolsRequest request, CallSettings callSettings = null)

Lists tools.

Parameters
Name Description
request ListToolsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListToolsResponseTool

A pageable asynchronous sequence of Tool resources.

Overrides

UpdateTool(UpdateToolRequest, CallSettings)

public override Tool UpdateTool(UpdateToolRequest request, CallSettings callSettings = null)

Updates a tool.

Parameters
Name Description
request UpdateToolRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Tool

The RPC response.

Overrides

UpdateToolAsync(UpdateToolRequest, CallSettings)

public override Task<Tool> UpdateToolAsync(UpdateToolRequest request, CallSettings callSettings = null)

Updates a tool.

Parameters
Name Description
request UpdateToolRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskTool

A Task containing the RPC response.

Overrides