pub struct BlockCompleteMessage {
pub contents: Option<Vec<ToolMessageStartContentsInner>>,
pub conditions: Option<Vec<BlockStartMessageConditionsInner>>,
pub type: Type,
pub content: Option<String>,
}Fields§
§contents: Option<Vec<ToolMessageStartContentsInner>>This is an alternative to the content property. It allows to specify variants of the same content, one per language. Usage: - If your assistants are multilingual, you can provide content for each language. - If you don’t provide content for a language, the first item in the array will be automatically translated to the active language at that moment. This will override the content property.
conditions: Option<Vec<BlockStartMessageConditionsInner>>This is an optional array of conditions that must be met for this message to be triggered.
type: TypeThis is the message type that is triggered when the block completes.
content: Option<String>This is the content that the assistant will say when this message is triggered.
Implementations§
Source§impl BlockCompleteMessage
impl BlockCompleteMessage
pub fn new(type: Type) -> BlockCompleteMessage
Trait Implementations§
Source§impl Clone for BlockCompleteMessage
impl Clone for BlockCompleteMessage
Source§fn clone(&self) -> BlockCompleteMessage
fn clone(&self) -> BlockCompleteMessage
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BlockCompleteMessage
impl Debug for BlockCompleteMessage
Source§impl Default for BlockCompleteMessage
impl Default for BlockCompleteMessage
Source§fn default() -> BlockCompleteMessage
fn default() -> BlockCompleteMessage
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BlockCompleteMessage
impl<'de> Deserialize<'de> for BlockCompleteMessage
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 OpenApi for BlockCompleteMessage
impl OpenApi for BlockCompleteMessage
Source§fn openapi() -> OpenApi
fn openapi() -> OpenApi
Return the
openapi::OpenApi instance which can be parsed with serde or served via
OpenAPI visualization tool such as Swagger UI.Source§impl PartialEq for BlockCompleteMessage
impl PartialEq for BlockCompleteMessage
Source§impl Serialize for BlockCompleteMessage
impl Serialize for BlockCompleteMessage
impl StructuralPartialEq for BlockCompleteMessage
Auto Trait Implementations§
impl Freeze for BlockCompleteMessage
impl RefUnwindSafe for BlockCompleteMessage
impl Send for BlockCompleteMessage
impl Sync for BlockCompleteMessage
impl Unpin for BlockCompleteMessage
impl UnwindSafe for BlockCompleteMessage
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