NAME
Google::Cloud::Dialogflow::V2beta1::ToolCall - Compiled Protocol Buffers messages for google/cloud/dialogflow/v2beta1/tool_call.proto
SYNOPSIS
use Google::Cloud::Dialogflow::V2beta1::ToolCall;
my $msg = Google::Cloud::Dialogflow::V2beta1::ToolCall::ToolCall->new({
tool => $tool,
ces_tool => $ces_tool,
ces_toolset => $ces_toolset,
ces_app => $ces_app,
});
# Read or update a field
my $val = $msg->tool();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Dialogflow::V2beta1::ToolCall::ToolCall->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/dialogflow/v2beta1/tool_call.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Cloud::Dialogflow::V2beta1::ToolCall::ToolCall
Represents a call of a specific tool's action with the specified inputs.
Inherits from Protobuf::Message.
Accessors
$msg->tool()/$msg->tool($value)Type:
StringOptional. The [tool][google.cloud.dialogflow.v2beta1.Tool] associated with this call. Format: `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.
$msg->ces_tool()/$msg->ces_tool($value)Type:
StringOptional. CES tool name for this call. Format: `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
$msg->ces_toolset()/$msg->ces_toolset($value)Type:
StringOptional. CES toolset name for this call. Format: `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
$msg->ces_app()/$msg->ces_app($value)Type:
StringOptional. CES app name for this call. Format: `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
$msg->tool_display_name()/$msg->tool_display_name($value)Type:
StringOptional. A human readable short name of the tool, to be shown on the UI.
$msg->tool_display_details()/$msg->tool_display_details($value)Type:
StringOptional. A human readable description of the tool.
$msg->action()/$msg->action($value)Type:
StringOptional. The name of the tool's action associated with this call.
$msg->input_parameters()/$msg->input_parameters($value)Type:
Message(Google::Protobuf::Struct::Struct)Optional. The action's input parameters.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Create time of the tool call.
$msg->answer_record()/$msg->answer_record($value)Type:
StringOptional. The answer record associated with this tool call.
$msg->state()/$msg->state($value)Type:
Enum(Google::Cloud::Dialogflow::V2beta1::ToolCall::State)Output only. State of the tool call
Enum: ToolCall::State
STATE_UNSPECIFIED=>0TRIGGERED=>1NEEDS_CONFIRMATION=>2
Google::Cloud::Dialogflow::V2beta1::ToolCall::ToolCallResult
The result of calling a tool's action.
Inherits from Protobuf::Message.
Accessors
$msg->tool()/$msg->tool($value)Type:
StringOptional. The [tool][google.cloud.dialogflow.v2beta1.Tool] associated with this call. Format: `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.
$msg->ces_tool()/$msg->ces_tool($value)Type:
StringOptional. CES tool name for this call. Format: `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
$msg->ces_toolset()/$msg->ces_toolset($value)Type:
StringOptional. CES toolset name for this call. Format: `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
$msg->ces_app()/$msg->ces_app($value)Type:
StringOptional. CES app name for this call. Format: `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
$msg->action()/$msg->action($value)Type:
StringOptional. The name of the tool's action associated with this call.
$msg->error()/$msg->error($value)Type:
Message(Google::Cloud::Dialogflow::V2beta1::ToolCall::ToolCallResult::Error)Optional. The tool call's error.
$msg->raw_content()/$msg->raw_content($value)Type:
BytesOptional. Only populated if the response content is not utf-8 encoded. (by definition byte fields are base64 encoded).
$msg->content()/$msg->content($value)Type:
StringOptional. Only populated if the response content is utf-8 encoded.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Create time of the tool call result.
$msg->answer_record()/$msg->answer_record($value)Type:
StringOptional. The answer record associated with this tool call result.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Dialogflow::V2beta1::ToolCall::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.