public sealed class ToolsClientImpl : ToolsClientReference documentation and code samples for the Google Cloud Dialogflow v2beta1 API class ToolsClientImpl.
Tools client wrapper implementation, for convenient use.
Namespace
Google.Cloud.Dialogflow.V2Beta1Assembly
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 |
ToolsToolsClientThe underlying gRPC client. |
settings |
ToolsSettingsThe base ToolsSettings used within this client. |
logger |
ILoggerOptional ILogger to use within this client. |
Properties
GrpcClient
public override Tools.ToolsClient GrpcClient { get; }The underlying gRPC Tools client
| Property Value | |
|---|---|
| Type | Description |
ToolsToolsClient |
|
LocationsClient
public override LocationsClient LocationsClient { get; }The LocationsClient associated with this client.
| Property Value | |
|---|---|
| Type | Description |
LocationsClient |
|
Methods
CreateTool(CreateToolRequest, CallSettings)
public override Tool CreateTool(CreateToolRequest request, CallSettings callSettings = null)Creates a tool.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateToolRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Tool |
The RPC response. |
CreateToolAsync(CreateToolRequest, CallSettings)
public override Task<Tool> CreateToolAsync(CreateToolRequest request, CallSettings callSettings = null)Creates a tool.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateToolRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskTool |
A Task containing the RPC response. |
DeleteTool(DeleteToolRequest, CallSettings)
public override void DeleteTool(DeleteToolRequest request, CallSettings callSettings = null)Deletes a tool.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteToolRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
DeleteToolAsync(DeleteToolRequest, CallSettings)
public override Task DeleteToolAsync(DeleteToolRequest request, CallSettings callSettings = null)Deletes a tool.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteToolRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task |
A Task containing the RPC response. |
GetTool(GetToolRequest, CallSettings)
public override Tool GetTool(GetToolRequest request, CallSettings callSettings = null)Retrieves a tool.
| Parameters | |
|---|---|
| Name | Description |
request |
GetToolRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Tool |
The RPC response. |
GetToolAsync(GetToolRequest, CallSettings)
public override Task<Tool> GetToolAsync(GetToolRequest request, CallSettings callSettings = null)Retrieves a tool.
| Parameters | |
|---|---|
| Name | Description |
request |
GetToolRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskTool |
A Task containing the RPC response. |
ListTools(ListToolsRequest, CallSettings)
public override PagedEnumerable<ListToolsResponse, Tool> ListTools(ListToolsRequest request, CallSettings callSettings = null)Lists tools.
| Parameters | |
|---|---|
| Name | Description |
request |
ListToolsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListToolsResponseTool |
A pageable sequence of Tool resources. |
ListToolsAsync(ListToolsRequest, CallSettings)
public override PagedAsyncEnumerable<ListToolsResponse, Tool> ListToolsAsync(ListToolsRequest request, CallSettings callSettings = null)Lists tools.
| Parameters | |
|---|---|
| Name | Description |
request |
ListToolsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListToolsResponseTool |
A pageable asynchronous sequence of Tool resources. |
UpdateTool(UpdateToolRequest, CallSettings)
public override Tool UpdateTool(UpdateToolRequest request, CallSettings callSettings = null)Updates a tool.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateToolRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Tool |
The RPC response. |
UpdateToolAsync(UpdateToolRequest, CallSettings)
public override Task<Tool> UpdateToolAsync(UpdateToolRequest request, CallSettings callSettings = null)Updates a tool.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateToolRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskTool |
A Task containing the RPC response. |