pub struct ToolMessageStart {
pub contents: Option<Vec<ToolMessageStartContentsInner>>,
pub type: TypeTrue,
pub blocking: Option<bool>,
pub content: Option<String>,
pub conditions: Option<Vec<Condition>>,
}
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.
type: TypeTrue
This message is triggered when the tool call starts. This message is never triggered for async tools. If this message is not provided, one of the default filler messages "Hold on a sec", "One moment", "Just a sec", "Give me a moment" or "This’ll just take a sec" will be used.
blocking: Option<bool>
This is an optional boolean that if true, the tool call will only trigger after the message is spoken. Default is false. @default false
content: Option<String>
This is the content that the assistant says when this message is triggered.
conditions: Option<Vec<Condition>>
This is an optional array of conditions that the tool call arguments must meet in order for this message to be triggered.
Implementations§
Source§impl ToolMessageStart
impl ToolMessageStart
pub fn new(type: TypeTrue) -> ToolMessageStart
Trait Implementations§
Source§impl Clone for ToolMessageStart
impl Clone for ToolMessageStart
Source§fn clone(&self) -> ToolMessageStart
fn clone(&self) -> ToolMessageStart
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read more