Gemini Enterprise for Customer Experience v1beta API - Class ToolCall (1.0.0-beta10)

public sealed class ToolCall : IMessage<ToolCall>, IEquatable<ToolCall>, IDeepCloneable<ToolCall>, IBufferMessage, IMessage

Reference documentation and code samples for the Gemini Enterprise for Customer Experience v1beta API class ToolCall.

Request for the client or the agent to execute the specified tool.

Inheritance

object > ToolCall

Namespace

Google.Cloud.Ces.V1Beta

Assembly

Google.Cloud.Ces.V1Beta.dll

Constructors

ToolCall()

public ToolCall()

ToolCall(ToolCall)

public ToolCall(ToolCall other)
Parameter
Name Description
other ToolCall

Properties

AgentName

public string AgentName { get; set; }

Output only. Human-readable name of the agent that issued this call, e.g. "Contract Architect". Empty when the root agent issued it.

Property Value
Type Description
string

Args

public Struct Args { get; set; }

Optional. The input parameters and values for the tool in JSON object format.

Property Value
Type Description
Struct

DisplayName

public string DisplayName { get; set; }

Output only. Display name of the tool.

Property Value
Type Description
string

HasTool

public bool HasTool { get; }

Gets whether the "tool" field is set

Property Value
Type Description
bool

Id

public string Id { get; set; }

Optional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in [ToolResponse][google.cloud.ces.v1beta.ToolResponse.id].

Property Value
Type Description
string

ParentToolCallId

public string ParentToolCallId { get; set; }

Output only. The id of the tool call that caused this one, when it was issued by a sub-agent working on behalf of a parent call. Empty for top-level calls. Lets a client group a sub-agent's work under the call that started it instead of rendering every step as a sibling.

Property Value
Type Description
string

Tool

public string Tool { get; set; }

Optional. The name of the tool to execute. Format: projects/{project}/locations/{location}/apps/{app}/tools/{tool}

Property Value
Type Description
string

ToolAsToolName

public ToolName ToolAsToolName { get; set; }

ToolName-typed view over the Tool resource name property.

Property Value
Type Description
ToolName

ToolIdentifierCase

public ToolCall.ToolIdentifierOneofCase ToolIdentifierCase { get; }
Property Value
Type Description
ToolCallToolIdentifierOneofCase

ToolsetTool

public ToolsetTool ToolsetTool { get; set; }

Optional. The toolset tool to execute.

Property Value
Type Description
ToolsetTool