Gemini Enterprise for Customer Experience v1 API - Class ToolResponse (1.0.0-beta01)

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

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

The execution result of a specific tool from the client or the agent.

Inheritance

object > ToolResponse

Namespace

Google.Cloud.Ces.V1

Assembly

Google.Cloud.Ces.V1.dll

Constructors

ToolResponse()

public ToolResponse()

ToolResponse(ToolResponse)

public ToolResponse(ToolResponse other)
Parameter
Name Description
other ToolResponse

Properties

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 matching ID of the [tool call][google.cloud.ces.v1.ToolCall] the response is for.

Property Value
Type Description
string

Response

public Struct Response { get; set; }

Required. The tool execution result in JSON object format. Use "output" key to specify tool response and "error" key to specify error details (if any). If "output" and "error" keys are not specified, then whole "response" is treated as tool execution result.

Property Value
Type Description
Struct

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 ToolResponse.ToolIdentifierOneofCase ToolIdentifierCase { get; }
Property Value
Type Description
ToolResponseToolIdentifierOneofCase

ToolsetTool

public ToolsetTool ToolsetTool { get; set; }

Optional. The toolset tool that got executed.

Property Value
Type Description
ToolsetTool