3.2.0 (latest) 3.1.0 3.0.0 2.25.0 2.24.0 2.23.0 2.22.0 2.21.0 2.20.0 2.19.0 2.18.0 2.17.0 2.16.0 2.15.0 2.14.0 2.13.0 2.12.0 2.11.0 2.10.0 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.13.0 1.12.0 1.11.0 1.10.0 1.9.0 1.8.0 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0

    public sealed class Playbook : IMessage<Playbook>, IEquatable<Playbook>, IDeepCloneable<Playbook>, IBufferMessage, IMessage

Reference documentation and code samples for the Dialogflow v3 API class 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.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> Playbook

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[Playbook](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Playbook.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Playbook](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Playbook.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[Playbook](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Playbook.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Dialogflow.Cx.V3](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.md.txt)

## Assembly

Google.Cloud.Dialogflow.Cx.V3.dll

## Constructors

### Playbook()

    public Playbook()

### Playbook(Playbook)

    public Playbook(Playbook other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `Playbook` |

## Properties

### CodeBlock

    public CodeBlock CodeBlock { get; set; }

Optional. The playbook's scoped code block, which may implement handlers
and actions.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `CodeBlock` |   |

### CreateTime

    public Timestamp CreateTime { get; set; }

Output only. The timestamp of initial playbook creation.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `Timestamp` |   |

### DisplayName

    public string DisplayName { get; set; }

Required. The human-readable name of the playbook, unique within an agent.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### Goal

    public string Goal { get; set; }

Required. 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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### Handlers

    public RepeatedField<Handler> Handlers { get; }

Optional. A list of registered handlers to execuate based on the specified
triggers.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RepeatedFieldHandler` |   |

### InlineActions

    public RepeatedField<string> InlineActions { get; }

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

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RepeatedFieldstring` |   |

### InputParameterDefinitions

    public RepeatedField<ParameterDefinition> InputParameterDefinitions { get; }

Optional. Defined structured input parameters for this playbook.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RepeatedFieldParameterDefinition` |   |

### Instruction

    public Playbook.Types.Instruction Instruction { get; set; }

Instruction to accomplish target goal.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `PlaybookTypesInstruction` |   |

### LlmModelSettings

    public LlmModelSettings LlmModelSettings { get; set; }

Optional. Llm model settings for the playbook.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `LlmModelSettings` |   |

### Name

    public string Name { get; set; }

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

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### OutputParameterDefinitions

    public RepeatedField<ParameterDefinition> OutputParameterDefinitions { get; }

Optional. Defined structured output parameters for this playbook.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RepeatedFieldParameterDefinition` |   |

### PlaybookName

    public PlaybookName PlaybookName { get; set; }

[PlaybookName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.PlaybookName.md.txt)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Playbook.md.txt#Google_Cloud_Dialogflow_Cx_V3_Playbook_Name) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `PlaybookName` |   |

### PlaybookType

    public Playbook.Types.PlaybookType PlaybookType { get; set; }

Optional. Type of the playbook.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `PlaybookTypesPlaybookType` |   |

### ReferencedFlows

    public RepeatedField<string> ReferencedFlows { get; }

Output only. The resource name of flows referenced by the current playbook
in the instructions.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RepeatedFieldstring` |   |

### ReferencedFlowsAsFlowNames

    public ResourceNameList<FlowName> ReferencedFlowsAsFlowNames { get; }

[FlowName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.FlowName.md.txt)-typed view over the [ReferencedFlows](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Playbook.md.txt#Google_Cloud_Dialogflow_Cx_V3_Playbook_ReferencedFlows) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `ResourceNameListFlowName` |   |

### ReferencedPlaybooks

    public RepeatedField<string> ReferencedPlaybooks { get; }

Output only. The resource name of other playbooks referenced by the current
playbook in the instructions.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RepeatedFieldstring` |   |

### ReferencedPlaybooksAsPlaybookNames

    public ResourceNameList<PlaybookName> ReferencedPlaybooksAsPlaybookNames { get; }

[PlaybookName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.PlaybookName.md.txt)-typed view over the [ReferencedPlaybooks](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Playbook.md.txt#Google_Cloud_Dialogflow_Cx_V3_Playbook_ReferencedPlaybooks) resource name
property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `ResourceNameListPlaybookName` |   |

### ReferencedTools

    public RepeatedField<string> ReferencedTools { get; }

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

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RepeatedFieldstring` |   |

### ReferencedToolsAsToolNames

    public ResourceNameList<ToolName> ReferencedToolsAsToolNames { get; }

[ToolName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.ToolName.md.txt)-typed view over the [ReferencedTools](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Playbook.md.txt#Google_Cloud_Dialogflow_Cx_V3_Playbook_ReferencedTools) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `ResourceNameListToolName` |   |

### TokenCount

    public long TokenCount { get; set; }

Output only. Estimated number of tokes current playbook takes when sent to
the LLM.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `long` |   |

### UpdateTime

    public Timestamp UpdateTime { get; set; }

Output only. Last time the playbook version was updated.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `Timestamp` |   |