Struct google_api_proto::google::cloud::dialogflow::cx::v3beta1::Playbook
source · pub struct Playbook {Show 13 fields
pub name: String,
pub display_name: String,
pub goal: String,
pub input_parameter_definitions: Vec<ParameterDefinition>,
pub output_parameter_definitions: Vec<ParameterDefinition>,
pub instruction: Option<Instruction>,
pub token_count: i64,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub referenced_playbooks: Vec<String>,
pub referenced_flows: Vec<String>,
pub referenced_tools: Vec<String>,
pub llm_model_settings: Option<LlmModelSettings>,
}
Expand description
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.
Fields§
§name: String
The unique identifier of the playbook.
Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/playbooks/<Playbook ID>
.
display_name: String
Required. The human-readable name of the playbook, unique within an agent.
goal: String
Required. High level description of the goal the playbook intend to accomplish.
input_parameter_definitions: Vec<ParameterDefinition>
Optional. Defined structured input parameters for this playbook.
output_parameter_definitions: Vec<ParameterDefinition>
Optional. Defined structured output parameters for this playbook.
instruction: Option<Instruction>
Instruction to accomplish target goal.
token_count: i64
Output only. Estimated number of tokes current playbook takes when sent to the LLM.
create_time: Option<Timestamp>
Output only. The timestamp of initial playbook creation.
update_time: Option<Timestamp>
Output only. Last time the playbook version was updated.
referenced_playbooks: Vec<String>
Output only. The resource name of other playbooks referenced by the current playbook in the instructions.
referenced_flows: Vec<String>
Output only. The resource name of flows referenced by the current playbook in the instructions.
referenced_tools: Vec<String>
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.
llm_model_settings: Option<LlmModelSettings>
Optional. Llm model settings for the playbook.
Trait Implementations§
source§impl Message for Playbook
impl Message for Playbook
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for Playbook
impl PartialEq for Playbook
impl StructuralPartialEq for Playbook
Auto Trait Implementations§
impl Freeze for Playbook
impl RefUnwindSafe for Playbook
impl Send for Playbook
impl Sync for Playbook
impl Unpin for Playbook
impl UnwindSafe for Playbook
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request