NAME

Google::Cloud::Dialogflow::V2::ToolCall - Compiled Protocol Buffers messages for google/cloud/dialogflow/v2/tool_call.proto

SYNOPSIS

use Google::Cloud::Dialogflow::V2::ToolCall;

my $msg = Google::Cloud::Dialogflow::V2::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::V2::ToolCall::ToolCall->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/dialogflow/v2/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::V2::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: String

    Optional. The [tool][google.cloud.dialogflow.v2.Tool] associated with this call. Format: `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.

  • $msg->ces_tool() / $msg->ces_tool($value)

    Type: String

    Optional. CES tool name for this call. Format: `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.

  • $msg->ces_toolset() / $msg->ces_toolset($value)

    Type: String

    Optional. CES toolset name for this call. Format: `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.

  • $msg->ces_app() / $msg->ces_app($value)

    Type: String

    Optional. CES app name for this call. Format: `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.

  • $msg->tool_display_name() / $msg->tool_display_name($value)

    Type: String

    Optional. A human readable short name of the tool, to be shown on the UI.

  • $msg->tool_display_details() / $msg->tool_display_details($value)

    Type: String

    Optional. A human readable description of the tool.

  • $msg->action() / $msg->action($value)

    Type: String

    Optional. 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: String

    Optional. The answer record associated with this tool call.

  • $msg->state() / $msg->state($value)

    Type: Enum (Google::Cloud::Dialogflow::V2::ToolCall::State)

    Output only. State of the tool call.

Enum: ToolCall::State

  • STATE_UNSPECIFIED => 0

  • TRIGGERED => 1

  • NEEDS_CONFIRMATION => 2

Google::Cloud::Dialogflow::V2::ToolCall::ToolCallResult

The result of calling a tool's action.

Inherits from Protobuf::Message.

Accessors

  • $msg->tool() / $msg->tool($value)

    Type: String

    Optional. The [tool][google.cloud.dialogflow.v2.Tool] associated with this call. Format: `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.

  • $msg->ces_toolset() / $msg->ces_toolset($value)

    Type: String

    Optional. CES toolset name for this call. Format: `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.

  • $msg->ces_tool() / $msg->ces_tool($value)

    Type: String

    Optional. CES tool name for this call. Format: `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.

  • $msg->ces_app() / $msg->ces_app($value)

    Type: String

    Optional. CES app name for this call. Format: `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.

  • $msg->action() / $msg->action($value)

    Type: String

    Optional. The name of the tool's action associated with this call.

  • $msg->error() / $msg->error($value)

    Type: Message (Google::Cloud::Dialogflow::V2::ToolCall::ToolCallResult::Error)

    Optional. The tool call's error.

  • $msg->raw_content() / $msg->raw_content($value)

    Type: Bytes

    Optional. Only populated if the response content is not utf-8 encoded. (by definition byte fields are base64 encoded).

  • $msg->content() / $msg->content($value)

    Type: String

    Optional. 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: String

    Optional. The answer record associated with this tool call result.

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Dialogflow::V2::ToolCall::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.