Service Client: Google::Cloud::Dialogflow::Cx::V3::Playbook::PlaybooksClient
Client stub representing the remote Playbooks gRPC service. Delegates call dispatching to Google::gRPC::Client.
target
The endpoint target address. Defaults to dialogflow.googleapis.com:443.
credentials
The authentication credentials provider. Defaults to application default credentials via Google::Auth.
NAME
Google::Cloud::Dialogflow::Cx::V3::Playbook - Compiled Protocol Buffers messages for google/cloud/dialogflow/cx/v3/playbook.proto
SYNOPSIS
use Google::Cloud::Dialogflow::Cx::V3::Playbook;
my $msg = Google::Cloud::Dialogflow::Cx::V3::Playbook::CreatePlaybookRequest->new({
parent => $parent,
playbook => $playbook,
});
# Read or update a field
my $val = $msg->parent();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Dialogflow::Cx::V3::Playbook::CreatePlaybookRequest->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/dialogflow/cx/v3/playbook.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::V3::Playbook::CreatePlaybookRequest
The request message for [Playbooks.CreatePlaybook][google.cloud.dialogflow.cx.v3.Playbooks.CreatePlaybook].
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The agent to create a playbook for. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
$msg->playbook()/$msg->playbook($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3::Playbook::Playbook)Required. The playbook to create.
Google::Cloud::Dialogflow::Cx::V3::Playbook::DeletePlaybookRequest
The request message for [Playbooks.DeletePlaybook][google.cloud.dialogflow.cx.v3.Playbooks.DeletePlaybook].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the playbook to delete. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`.
Google::Cloud::Dialogflow::Cx::V3::Playbook::ListPlaybooksRequest
The request message for [Playbooks.ListPlaybooks][google.cloud.dialogflow.cx.v3.Playbooks.ListPlaybooks].
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The agent to list playbooks from. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
$msg->page_size()/$msg->page_size($value)Type:
Int32The maximum number of items to return in a single page. By default 100 and at most 1000.
$msg->page_token()/$msg->page_token($value)Type:
StringThe next_page_token value returned from a previous list request.
Google::Cloud::Dialogflow::Cx::V3::Playbook::ListPlaybooksResponse
The response message for [Playbooks.ListPlaybooks][google.cloud.dialogflow.cx.v3.Playbooks.ListPlaybooks].
Inherits from Protobuf::Message.
Accessors
$msg->playbooks()/$msg->playbooks($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3::Playbook::Playbook)The list of playbooks. There will be a maximum number of items returned based on the page_size field in the request.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringToken to retrieve the next page of results, or empty if there are no more results in the list.
Google::Cloud::Dialogflow::Cx::V3::Playbook::GetPlaybookRequest
The request message for [Playbooks.GetPlaybook][google.cloud.dialogflow.cx.v3.Playbooks.GetPlaybook].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the playbook. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`.
Google::Cloud::Dialogflow::Cx::V3::Playbook::UpdatePlaybookRequest
The request message for [Playbooks.UpdatePlaybook][google.cloud.dialogflow.cx.v3.Playbooks.UpdatePlaybook].
Inherits from Protobuf::Message.
Accessors
$msg->playbook()/$msg->playbook($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3::Playbook::Playbook)Required. The playbook to update.
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)The mask to control which fields get updated. If the mask is not present, all fields will be updated.
Google::Cloud::Dialogflow::Cx::V3::Playbook::Playbook
Playbook is the basic building block to instruct the LLM how to execute a certain task.
A playbook consists of a goal to accomplish, an optional list of step by step instructions (the step instruction may refers to name of the custom or default plugin tools to use) to perform the task, a list of contextual input data to be passed in at the beginning of the invoked, and a list of output parameters to store the playbook result.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringThe unique identifier of the playbook. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`.
$msg->display_name()/$msg->display_name($value)Type:
StringRequired. The human-readable name of the playbook, unique within an agent.
$msg->goal()/$msg->goal($value)Type:
StringRequired. High level description of the goal the playbook intend to accomplish. A goal should be concise since it's visible to other playbooks that may reference this playbook.
$msg->input_parameter_definitions()/$msg->input_parameter_definitions($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3::ParameterDefinition::ParameterDefinition)Optional. Defined structured input parameters for this playbook.
$msg->output_parameter_definitions()/$msg->output_parameter_definitions($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3::ParameterDefinition::ParameterDefinition)Optional. Defined structured output parameters for this playbook.
$msg->instruction()/$msg->instruction($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3::Playbook::Playbook::Instruction)Instruction to accomplish target goal.
$msg->token_count()/$msg->token_count($value)Type:
Int64Output only. Estimated number of tokes current playbook takes when sent to the LLM.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The timestamp of initial playbook creation.
$msg->update_time()/$msg->update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Last time the playbook version was updated.
$msg->referenced_playbooks()/$msg->referenced_playbooks($value)Type:
StringOutput only. The resource name of other playbooks referenced by the current playbook in the instructions.
$msg->referenced_flows()/$msg->referenced_flows($value)Type:
StringOutput only. The resource name of flows referenced by the current playbook in the instructions.
$msg->referenced_tools()/$msg->referenced_tools($value)Type:
StringOptional. The resource name of tools referenced by the current playbook in the instructions. If not provided explicitly, they are will be implied using the tool being referenced in goal and steps.
$msg->inline_actions()/$msg->inline_actions($value)Type:
StringOptional. Output only. Names of inline actions scoped to this playbook. These actions are in addition to those belonging to referenced tools, child playbooks, and flows, e.g. actions that are defined in the playbook's code block.
$msg->code_block()/$msg->code_block($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3::CodeBlock::CodeBlock)Optional. The playbook's scoped code block, which may implement handlers and actions.
$msg->llm_model_settings()/$msg->llm_model_settings($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3::GenerativeSettings::LlmModelSettings)Optional. Llm model settings for the playbook.
$msg->handlers()/$msg->handlers($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3::Playbook::Handler)Optional. A list of registered handlers to execuate based on the specified triggers.
$msg->playbook_type()/$msg->playbook_type($value)Type:
Enum(Google::Cloud::Dialogflow::Cx::V3::Playbook::PlaybookType)Optional. Type of the playbook.
Enum: Playbook::PlaybookType
PLAYBOOK_TYPE_UNSPECIFIED=>0TASK=>1ROUTINE=>3
Google::Cloud::Dialogflow::Cx::V3::Playbook::CreatePlaybookVersionRequest
The request message for [Playbooks.CreatePlaybookVersion][google.cloud.dialogflow.cx.v3.Playbooks.CreatePlaybookVersion].
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The playbook to create a version for. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`.
$msg->playbook_version()/$msg->playbook_version($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3::Playbook::PlaybookVersion)Required. The playbook version to create.
Google::Cloud::Dialogflow::Cx::V3::Playbook::PlaybookVersion
Playbook version is a snapshot of the playbook at certain timestamp.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringThe unique identifier of the playbook version. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>/versions/<VersionID>`.
$msg->description()/$msg->description($value)Type:
StringOptional. The description of the playbook version.
$msg->playbook()/$msg->playbook($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3::Playbook::Playbook)Output only. Snapshot of the playbook when the playbook version is created.
$msg->examples()/$msg->examples($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3::Example::Example)Output only. Snapshot of the examples belonging to the playbook when the playbook version is created.
$msg->update_time()/$msg->update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Last time the playbook version was created or modified.
Google::Cloud::Dialogflow::Cx::V3::Playbook::GetPlaybookVersionRequest
The request message for [Playbooks.GetPlaybookVersion][google.cloud.dialogflow.cx.v3.Playbooks.GetPlaybookVersion].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the playbook version. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>/versions/<VersionID>`.
Google::Cloud::Dialogflow::Cx::V3::Playbook::RestorePlaybookVersionRequest
The request message for [Playbooks.RestorePlaybookVersion][google.cloud.dialogflow.cx.v3.Playbooks.RestorePlaybookVersion].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the playbook version. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>/versions/<VersionID>`.
Google::Cloud::Dialogflow::Cx::V3::Playbook::RestorePlaybookVersionResponse
The response message for [Playbooks.RestorePlaybookVersion][google.cloud.dialogflow.cx.v3.Playbooks.RestorePlaybookVersion].
Inherits from Protobuf::Message.
Accessors
$msg->playbook()/$msg->playbook($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3::Playbook::Playbook)The updated playbook.
Google::Cloud::Dialogflow::Cx::V3::Playbook::ListPlaybookVersionsRequest
The request message for [Playbooks.ListPlaybookVersions][google.cloud.dialogflow.cx.v3.Playbooks.ListPlaybookVersions].
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The playbook to list versions for. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`.
$msg->page_size()/$msg->page_size($value)Type:
Int32Optional. The maximum number of items to return in a single page. By default 100 and at most 1000.
$msg->page_token()/$msg->page_token($value)Type:
StringOptional. The next_page_token value returned from a previous list request.
Google::Cloud::Dialogflow::Cx::V3::Playbook::ListPlaybookVersionsResponse
The response message for [Playbooks.ListPlaybookVersions][google.cloud.dialogflow.cx.v3.Playbooks.ListPlaybookVersions].
Inherits from Protobuf::Message.
Accessors
$msg->playbook_versions()/$msg->playbook_versions($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3::Playbook::PlaybookVersion)The list of playbook version. There will be a maximum number of items returned based on the page_size field in the request.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringToken to retrieve the next page of results, or empty if there are no more results in the list.
Google::Cloud::Dialogflow::Cx::V3::Playbook::DeletePlaybookVersionRequest
The request message for [Playbooks.DeletePlaybookVersion][google.cloud.dialogflow.cx.v3.Playbooks.DeletePlaybookVersion].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the playbook version to delete. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>/versions/<VersionID>`.
Google::Cloud::Dialogflow::Cx::V3::Playbook::ExportPlaybookRequest
The request message for [Playbooks.ExportPlaybook][google.cloud.dialogflow.cx.v3.Playbooks.ExportPlaybook].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the playbook to export. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`.
$msg->playbook_uri()/$msg->playbook_uri($value)Type:
StringOptional. The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to export the playbook to. The format of this URI must be `gs://<bucket-name>/<object-name>`. If left unspecified, the serialized playbook is returned inline.
Dialogflow performs a write operation for the Cloud Storage object on the caller's behalf, so your request authentication must have write permissions for the object. For more information, see [Dialogflow access control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
$msg->data_format()/$msg->data_format($value)Type:
Enum(Google::Cloud::Dialogflow::Cx::V3::ExportPlaybookRequest::DataFormat)Optional. The data format of the exported agent. If not specified, `BLOB` is assumed.
Enum: ExportPlaybookRequest::DataFormat
DATA_FORMAT_UNSPECIFIED=>0BLOB=>1JSON=>2
Google::Cloud::Dialogflow::Cx::V3::Playbook::ImportPlaybookRequest
The request message for [Playbooks.ImportPlaybook][google.cloud.dialogflow.cx.v3.Playbooks.ImportPlaybook].
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The agent to import the playbook into. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
$msg->playbook_uri()/$msg->playbook_uri($value)Type:
String[Dialogflow access control] (https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
$msg->playbook_content()/$msg->playbook_content($value)Type:
BytesUncompressed raw byte content for playbook.
$msg->import_strategy()/$msg->import_strategy($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3::Playbook::PlaybookImportStrategy)Optional. Specifies the import strategy used when resolving resource conflicts.
Google::Cloud::Dialogflow::Cx::V3::Playbook::PlaybookImportStrategy
The playbook import strategy used for resource conflict resolution associated with an [ImportPlaybookRequest][google.cloud.dialogflow.cx.v3.ImportPlaybookRequest].
Inherits from Protobuf::Message.
Accessors
$msg->main_playbook_import_strategy()/$msg->main_playbook_import_strategy($value)Type:
Enum(Google::Cloud::Dialogflow::Cx::V3::ImportStrategy)Optional. Specifies the import strategy used when resolving conflicts with the main playbook. If not specified, 'CREATE_NEW' is assumed.
$msg->nested_resource_import_strategy()/$msg->nested_resource_import_strategy($value)Type:
Enum(Google::Cloud::Dialogflow::Cx::V3::ImportStrategy)Optional. Specifies the import strategy used when resolving referenced playbook/flow conflicts. If not specified, 'CREATE_NEW' is assumed.
$msg->tool_import_strategy()/$msg->tool_import_strategy($value)Type:
Enum(Google::Cloud::Dialogflow::Cx::V3::ImportStrategy)Optional. Specifies the import strategy used when resolving tool conflicts. If not specified, 'CREATE_NEW' is assumed. This will be applied after the main playbook and nested resource import strategies, meaning if the playbook that references the tool is skipped, the tool will also be skipped.
Google::Cloud::Dialogflow::Cx::V3::Playbook::ImportPlaybookResponse
The response message for [Playbooks.ImportPlaybook][google.cloud.dialogflow.cx.v3.Playbooks.ImportPlaybook].
Inherits from Protobuf::Message.
Accessors
$msg->playbook()/$msg->playbook($value)Type:
StringThe unique identifier of the new playbook. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`.
$msg->conflicting_resources()/$msg->conflicting_resources($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3::Playbook::ImportPlaybookResponse::ConflictingResources)Info which resources have conflicts when [REPORT_CONFLICTS][ImportPlaybookResponse.REPORT_CONFLICTS] import strategy is set for all resources in ImportPlaybookRequest.
Google::Cloud::Dialogflow::Cx::V3::Playbook::ExportPlaybookResponse
The response message for [Playbooks.ExportPlaybook][google.cloud.dialogflow.cx.v3.Playbooks.ExportPlaybook].
Inherits from Protobuf::Message.
Accessors
$msg->playbook_uri()/$msg->playbook_uri($value)Type:
StringThe URI to a file containing the exported playbook. This field is populated only if `playbook_uri` is specified in [ExportPlaybookRequest][google.cloud.dialogflow.cx.v3.ExportPlaybookRequest].
$msg->playbook_content()/$msg->playbook_content($value)Type:
BytesUncompressed raw byte content for playbook.
Google::Cloud::Dialogflow::Cx::V3::Playbook::Handler
Handler can be used to define custom logic to be executed based on the user-specified triggers.
Inherits from Protobuf::Message.
Accessors
$msg->event_handler()/$msg->event_handler($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3::Playbook::Handler::EventHandler)A handler triggered by event.
$msg->lifecycle_handler()/$msg->lifecycle_handler($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3::Playbook::Handler::LifecycleHandler)A handler triggered during specific lifecycle of the playbook execution.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Dialogflow::Cx::V3::Playbook::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.