NAME

Google::Cloud::Dialogflow::Cx::V3beta1::Trace - Compiled Protocol Buffers messages for google/cloud/dialogflow/cx/v3beta1/trace.proto

SYNOPSIS

use Google::Cloud::Dialogflow::Cx::V3beta1::Trace;

my $msg = Google::Cloud::Dialogflow::Cx::V3beta1::Trace::TraceBlock->new({
    playbook_trace_metadata => $playbook_trace_metadata,
    flow_trace_metadata => $flow_trace_metadata,
    speech_processing_metadata => $speech_processing_metadata,
    actions => $actions,
});

# Read or update a field
my $val = $msg->playbook_trace_metadata();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Dialogflow::Cx::V3beta1::Trace::TraceBlock->parse($bytes);

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/dialogflow/cx/v3beta1/trace.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::Cx::V3beta1::Trace::TraceBlock

The trace block tracks a sequence of actions taken by the agent in a flow or a playbook.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Dialogflow::Cx::V3beta1::Trace::SpeechProcessingMetadata

Metadata of the speech-to-text and text-to-speech processing.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Output only. The display name of the speech processing.

Google::Cloud::Dialogflow::Cx::V3beta1::Trace::PlaybookTraceMetadata

Metadata of the playbook trace.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The unique identifier of the playbook. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`.

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

    Type: String

    Output only. The display name of the playbook.

Google::Cloud::Dialogflow::Cx::V3beta1::Trace::FlowTraceMetadata

Metadata of the flow trace.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The unique identifier of the flow. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`.

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

    Type: String

    Output only. The display name of the flow.

Google::Cloud::Dialogflow::Cx::V3beta1::Trace::Action

Action performed by end user or Dialogflow agent in the conversation.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Dialogflow::Cx::V3beta1::Trace::UserUtterance

UserUtterance represents one message sent by the customer.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Message content in text.

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

    Type: Int32

    Optional. Tokens of the audio input.

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

    Type: Bytes

    Optional. Audio input.

Google::Cloud::Dialogflow::Cx::V3beta1::Trace::Event

Event represents the event sent by the customer.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Name of the event.

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

    Type: String

    Optional. Unstructured text payload of the event.

Google::Cloud::Dialogflow::Cx::V3beta1::Trace::AgentUtterance

AgentUtterance represents one message sent by the agent.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Message content in text.

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

    Type: Bool

    Optional. True if the agent utterance needs to be generated by the LLM. Only used in webhook response to differentiate from empty text. Revisit whether we need this field or mark `text` as optional when we expose webhook interface to customer.

Google::Cloud::Dialogflow::Cx::V3beta1::Trace::ToolUse

Stores metadata of the invocation of an action supported by a tool.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The [tool][google.cloud.dialogflow.cx.v3beta1.Tool] that should be used. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID>`.

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

    Type: String

    Output only. The display name of the tool.

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

    Type: String

    Optional. Name of the action to be called during the tool use.

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

    Type: Message (Google::Protobuf::Struct::Struct)

    Optional. A list of input parameters for the action.

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

    Type: Message (Google::Protobuf::Struct::Struct)

    Optional. A list of output parameters generated by the action.

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

    Type: Message (Google::Cloud::Dialogflow::Cx::V3beta1::Trace::ToolUse::DataStoreToolTrace)

    Optional. Data store tool trace.

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

    Type: Message (Google::Cloud::Dialogflow::Cx::V3beta1::Trace::ToolUse::WebhookToolTrace)

    Optional. Webhook tool trace.

Google::Cloud::Dialogflow::Cx::V3beta1::Trace::LlmCall

Stores metadata of the call of an LLM.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Dialogflow::Cx::V3beta1::Trace::PlaybookInvocation

Stores metadata of the invocation of a child playbook. Playbook invocation actions enter the child playbook.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Dialogflow::Cx::V3beta1::Trace::FlowInvocation

Stores metadata of the invocation of a child CX flow. Flow invocation actions enter the child flow.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The unique identifier of the flow. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<Agentflows/<FlowID>`.

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

    Type: String

    Output only. The display name of the flow.

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

    Type: Message (Google::Protobuf::Struct::Struct)

    Optional. A list of input parameters for the flow.

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

    Type: Message (Google::Protobuf::Struct::Struct)

    Optional. A list of output parameters generated by the flow invocation.

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

    Type: Enum (Google::Cloud::Dialogflow::Cx::V3beta1::OutputState)

    Required. Flow invocation's output state.

Google::Cloud::Dialogflow::Cx::V3beta1::Trace::PlaybookTransition

Stores metadata of the transition to another target playbook. Playbook transition actions exit the caller playbook and enter the target playbook.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The unique identifier of the playbook. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`.

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

    Type: String

    Output only. The display name of the playbook.

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

    Type: Message (Google::Protobuf::Struct::Struct)

    A list of input parameters for the action.

Google::Cloud::Dialogflow::Cx::V3beta1::Trace::FlowTransition

Stores metadata of the transition to a target CX flow. Flow transition actions exit the caller playbook and enter the child flow.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The unique identifier of the flow. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<Agentflows/<FlowID>`.

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

    Type: String

    Output only. The display name of the flow.

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

    Type: Message (Google::Protobuf::Struct::Struct)

    A list of input parameters for the action.

Google::Cloud::Dialogflow::Cx::V3beta1::Trace::PlaybookInput

Input of the playbook.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Optional. Summary string of the preceding conversation for the child playbook invocation.

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

    Type: Message (Google::Protobuf::Struct::Struct)

    Optional. A list of input parameters for the action.

Google::Cloud::Dialogflow::Cx::V3beta1::Trace::PlaybookOutput

Output of the playbook.

Inherits from Protobuf::Message.

Accessors

Enum: PlaybookOutput::State

  • STATE_UNSPECIFIED => 0

  • OK => 1

  • CANCELLED => 2

  • FAILED => 3

  • ESCALATED => 4

Google::Cloud::Dialogflow::Cx::V3beta1::Trace::Span

A span represents a sub execution step of an action.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Dialogflow::Cx::V3beta1::Trace::NamedMetric

A named metric is a metric with name, value and unit.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The name of the metric.

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

    Type: Message (Google::Protobuf::Struct::Value)

    The value of the metric.

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

    Type: String

    The unit in which this metric is reported. Follows [The Unified Code for Units of Measure](https://unitsofmeasure.org/ucum.html) standard.

Google::Cloud::Dialogflow::Cx::V3beta1::Trace::Status

The status of the action.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Dialogflow::Cx::V3beta1::Trace::ExceptionDetail

Exception thrown during the execution of an action.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Optional. The error message.

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Dialogflow::Cx::V3beta1::Trace::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.