pub enum Type {
Conversation,
}Expand description
This block is used for conversation. This can be a free flow conversation or a conversation with a specific goal like collecting some information. For free block conversation, put clearly in the instruction when the block can be considered done. { \"type\": \"conversation\", \"instruction\": \"Chit chat with the user asking them about their day. When user asks a specific question or once you have talked to the user for a couple of turns of conversation, move on.\" } For conversation with a specific goal, you can define an outputSchema with required fields. The block won’t be considered done until the user has provided all the required fields in the outputSchema. { \"type\": \"conversation\", \"instruction\": \"Ask the user about their hobbies, hopes and dreams.\", \"outputSchema\": { \"type\": \"object\", \"properties\": { \"hobbies\": { \"type\": \"string\" }, \"hopes\": { \"type\": \"string\" }, \"dreams\": { \"type\": \"string\" } }, \"required\": [\"hobbies\"] } } For the above example, the conversation block will be considered done once the user has provided the hobbies (even if they have not provided the hopes and dreams).
Variants§
Conversation
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Type
impl<'de> Deserialize<'de> for Type
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>,
Source§impl OpenApi for Type
impl OpenApi for Type
Source§fn openapi() -> OpenApi
fn openapi() -> OpenApi
openapi::OpenApi instance which can be parsed with serde or served via
OpenAPI visualization tool such as Swagger UI.Source§impl Ord for Type
impl Ord for Type
Source§impl PartialOrd for Type
impl PartialOrd for Type
impl Copy for Type
impl Eq for Type
impl StructuralPartialEq for Type
Auto Trait Implementations§
impl Freeze for Type
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnwindSafe for Type
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.