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
$msg->playbook_trace_metadata()/$msg->playbook_trace_metadata($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3beta1::Trace::PlaybookTraceMetadata)Metadata of the playbook trace.
$msg->flow_trace_metadata()/$msg->flow_trace_metadata($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3beta1::Trace::FlowTraceMetadata)Metadata of the flow trace.
$msg->speech_processing_metadata()/$msg->speech_processing_metadata($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3beta1::Trace::SpeechProcessingMetadata)Metadata of the speech-to-text and speech-to-text processing.
$msg->actions()/$msg->actions($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3beta1::Trace::Action)The actions performed by the agent and the user during this session.
$msg->start_time()/$msg->start_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Timestamp of the start of the trace block.
$msg->complete_time()/$msg->complete_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Timestamp of the end of the trace block.
$msg->input_parameters()/$msg->input_parameters($value)Type:
Message(Google::Protobuf::Struct::Struct)Optional. A list of input parameters of the trace block.
$msg->output_parameters()/$msg->output_parameters($value)Type:
Message(Google::Protobuf::Struct::Struct)Optional. A list of output parameters of the trace block.
$msg->end_state()/$msg->end_state($value)Type:
Enum(Google::Cloud::Dialogflow::Cx::V3beta1::OutputState)Optional. Output only. The end state of the trace block.
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:
StringOutput 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:
StringRequired. The unique identifier of the playbook. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`.
$msg->display_name()/$msg->display_name($value)Type:
StringOutput 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:
StringRequired. The unique identifier of the flow. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`.
$msg->display_name()/$msg->display_name($value)Type:
StringOutput 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
$msg->user_utterance()/$msg->user_utterance($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3beta1::Trace::UserUtterance)Optional. Agent obtained a message from the customer.
$msg->event()/$msg->event($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3beta1::Trace::Event)Optional. The agent received an event from the customer or a system event is emitted.
$msg->agent_utterance()/$msg->agent_utterance($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3beta1::Trace::AgentUtterance)Optional. Action performed by the agent as a message.
$msg->tool_use()/$msg->tool_use($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3beta1::Trace::ToolUse)Optional. Action performed on behalf of the agent by calling a plugin tool.
$msg->llm_call()/$msg->llm_call($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3beta1::Trace::LlmCall)Optional. Output only. LLM call performed by the agent.
$msg->intent_match()/$msg->intent_match($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3beta1::Trace::Action::IntentMatch)Optional. Output only. Intent Match in flows.
$msg->flow_state_update()/$msg->flow_state_update($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3beta1::Trace::Action::FlowStateUpdate)Optional. Output only. The state machine update in flows.
$msg->playbook_invocation()/$msg->playbook_invocation($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3beta1::Trace::PlaybookInvocation)Optional. Action performed on behalf of the agent by invoking a child playbook.
$msg->flow_invocation()/$msg->flow_invocation($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3beta1::Trace::FlowInvocation)Optional. Action performed on behalf of the agent by invoking a CX flow.
$msg->playbook_transition()/$msg->playbook_transition($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3beta1::Trace::PlaybookTransition)Optional. Action performed on behalf of the agent by transitioning to a target playbook.
$msg->flow_transition()/$msg->flow_transition($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3beta1::Trace::FlowTransition)Optional. Action performed on behalf of the agent by transitioning to a target CX flow.
$msg->tts()/$msg->tts($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3beta1::Trace::Action::TTS)Optional. Text-to-speech action performed by the agent.
$msg->stt()/$msg->stt($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3beta1::Trace::Action::STT)Optional. Speech-to-text action performed by the agent.
$msg->display_name()/$msg->display_name($value)Type:
StringOutput only. The display name of the action.
$msg->start_time()/$msg->start_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Timestamp of the start of the agent action.
$msg->complete_time()/$msg->complete_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Timestamp of the completion of the agent action.
$msg->sub_execution_steps()/$msg->sub_execution_steps($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3beta1::Trace::Span)Optional. The detailed tracing information for sub execution steps of the action.
$msg->status()/$msg->status($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3beta1::Trace::Status)Optional. Output only. The status of the action.
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:
StringRequired. Message content in text.
$msg->audio_tokens()/$msg->audio_tokens($value)Type:
Int32Optional. Tokens of the audio input.
$msg->audio()/$msg->audio($value)Type:
BytesOptional. 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:
StringRequired. Name of the event.
$msg->text()/$msg->text($value)Type:
StringOptional. 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:
StringRequired. Message content in text.
$msg->require_generation()/$msg->require_generation($value)Type:
BoolOptional. 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:
StringRequired. 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:
StringOutput only. The display name of the tool.
$msg->action()/$msg->action($value)Type:
StringOptional. 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
$msg->retrieved_examples()/$msg->retrieved_examples($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3beta1::Trace::LlmCall::RetrievedExample)A list of relevant examples used for the LLM prompt.
$msg->token_count()/$msg->token_count($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3beta1::Trace::LlmCall::TokenCount)The token counts of the LLM call.
$msg->model()/$msg->model($value)Type:
StringThe model of the LLM call.
$msg->temperature()/$msg->temperature($value)Type:
FloatThe temperature of the LLM call.
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
$msg->playbook()/$msg->playbook($value)Type:
StringRequired. The unique identifier of the playbook. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`.
$msg->display_name()/$msg->display_name($value)Type:
StringOutput only. The display name of the playbook.
$msg->playbook_input()/$msg->playbook_input($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3beta1::Trace::PlaybookInput)Optional. Input of the child playbook invocation.
$msg->playbook_output()/$msg->playbook_output($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3beta1::Trace::PlaybookOutput)Optional. Output of the child playbook invocation.
$msg->playbook_state()/$msg->playbook_state($value)Type:
Enum(Google::Cloud::Dialogflow::Cx::V3beta1::OutputState)Required. Playbook invocation's output state.
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:
StringRequired. The unique identifier of the flow. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<Agentflows/<FlowID>`.
$msg->display_name()/$msg->display_name($value)Type:
StringOutput 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:
StringRequired. The unique identifier of the playbook. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`.
$msg->display_name()/$msg->display_name($value)Type:
StringOutput 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:
StringRequired. The unique identifier of the flow. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<Agentflows/<FlowID>`.
$msg->display_name()/$msg->display_name($value)Type:
StringOutput 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:
StringOptional. 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
$msg->execution_summary()/$msg->execution_summary($value)Type:
StringOptional. Summary string of the execution result of the child playbook.
$msg->state()/$msg->state($value)Type:
Enum(Google::Cloud::Dialogflow::Cx::V3beta1::PlaybookOutput::State)End state of the playbook.
$msg->action_parameters()/$msg->action_parameters($value)Type:
Message(Google::Protobuf::Struct::Struct)Optional. A Struct object of output parameters for the action.
Enum: PlaybookOutput::State
STATE_UNSPECIFIED=>0OK=>1CANCELLED=>2FAILED=>3ESCALATED=>4
Google::Cloud::Dialogflow::Cx::V3beta1::Trace::Span
A span represents a sub execution step of an action.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringThe name of the span.
$msg->tags()/$msg->tags($value)Type:
StringThe metadata tags of the span such as span type.
$msg->metrics()/$msg->metrics($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3beta1::Trace::NamedMetric)The unordered collection of metrics in this span.
$msg->start_time()/$msg->start_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Timestamp of the start of the span.
$msg->complete_time()/$msg->complete_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Timestamp of the completion of the span.
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:
StringThe 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:
StringThe 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
$msg->exception()/$msg->exception($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3beta1::Trace::ExceptionDetail)Optional. The exception thrown during the execution of the action.
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:
StringOptional. 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.