pub struct ConversationNode {
pub type: TypeTrue,
pub model: Option<ConversationNodeModel>,
pub transcriber: Option<ConversationNodeTranscriber>,
pub voice: Option<ConversationNodeVoice>,
pub prompt: Option<String>,
pub global_node_plan: Option<GlobalNodePlan>,
pub variable_extraction_plan: Option<VariableExtractionPlan>,
pub name: String,
pub is_start: Option<bool>,
pub metadata: Option<Value>,
}
Fields§
§type: TypeTrue
This is the Conversation node. This can be used to start a conversation with the customer. The flow is: - Workflow starts the conversation node - Model is active with the prompt
and global context. - Model will call a tool to exit this node. - Workflow will extract variables from the conversation. - Workflow continues.
model: Option<ConversationNodeModel>
§transcriber: Option<ConversationNodeTranscriber>
§voice: Option<ConversationNodeVoice>
§prompt: Option<String>
§global_node_plan: Option<GlobalNodePlan>
This is the plan for the global node.
variable_extraction_plan: Option<VariableExtractionPlan>
This is the plan that controls the variable extraction from the user’s response.
name: String
§is_start: Option<bool>
This is whether or not the node is the start of the workflow.
metadata: Option<Value>
This is for metadata you want to store on the task.
Implementations§
Source§impl ConversationNode
impl ConversationNode
pub fn new(type: TypeTrue, name: String) -> ConversationNode
Trait Implementations§
Source§impl Clone for ConversationNode
impl Clone for ConversationNode
Source§fn clone(&self) -> ConversationNode
fn clone(&self) -> ConversationNode
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ConversationNode
impl Debug for ConversationNode
Source§impl Default for ConversationNode
impl Default for ConversationNode
Source§fn default() -> ConversationNode
fn default() -> ConversationNode
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ConversationNode
impl<'de> Deserialize<'de> for ConversationNode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ConversationNode
impl PartialEq for ConversationNode
Source§impl Serialize for ConversationNode
impl Serialize for ConversationNode
impl StructuralPartialEq for ConversationNode
Auto Trait Implementations§
impl Freeze for ConversationNode
impl RefUnwindSafe for ConversationNode
impl Send for ConversationNode
impl Sync for ConversationNode
impl Unpin for ConversationNode
impl UnwindSafe for ConversationNode
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
Mutably borrows from an owned value. Read more