#[non_exhaustive]pub struct ToolDisplayLabel {
pub active: String,
pub done: String,
pub neutral: String,
}Expand description
toolCall.displayLabel: the call’s words in three forms, each one line of
plain text, always present together. The item’s status picks the form.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.active: StringShown while the call runs (inProgress), e.g. “Setting up Computer Use”.
done: StringShown after the call succeeds (completed), e.g. “Set up Computer Use”.
neutral: StringShown for every other status (failed, rejected, timed out, cancelled), beside that status; never implies success.
Trait Implementations§
Source§impl Clone for ToolDisplayLabel
impl Clone for ToolDisplayLabel
Source§impl Debug for ToolDisplayLabel
impl Debug for ToolDisplayLabel
Source§impl<'de> Deserialize<'de> for ToolDisplayLabel
impl<'de> Deserialize<'de> for ToolDisplayLabel
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
impl Eq for ToolDisplayLabel
Source§impl PartialEq for ToolDisplayLabel
impl PartialEq for ToolDisplayLabel
Source§impl Serialize for ToolDisplayLabel
impl Serialize for ToolDisplayLabel
impl StructuralPartialEq for ToolDisplayLabel
Auto Trait Implementations§
impl Freeze for ToolDisplayLabel
impl RefUnwindSafe for ToolDisplayLabel
impl Send for ToolDisplayLabel
impl Sync for ToolDisplayLabel
impl Unpin for ToolDisplayLabel
impl UnsafeUnpin for ToolDisplayLabel
impl UnwindSafe for ToolDisplayLabel
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