#[non_exhaustive]pub enum CommittedItem<'a> {
ToolCall(&'a ToolCall),
ToolResult(&'a ToolResult),
}Expand description
A tool call or result committed to a run’s history, in commit order.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ToolCall(&'a ToolCall)
An assistant tool call.
ToolResult(&'a ToolResult)
A user tool result answering a call.
Trait Implementations§
Source§impl<'a> Clone for CommittedItem<'a>
impl<'a> Clone for CommittedItem<'a>
impl<'a> Copy for CommittedItem<'a>
Source§impl<'a> Debug for CommittedItem<'a>
impl<'a> Debug for CommittedItem<'a>
Source§impl<'a> PartialEq for CommittedItem<'a>
impl<'a> PartialEq for CommittedItem<'a>
impl<'a> StructuralPartialEq for CommittedItem<'a>
Auto Trait Implementations§
impl<'a> Freeze for CommittedItem<'a>
impl<'a> RefUnwindSafe for CommittedItem<'a>
impl<'a> Send for CommittedItem<'a>
impl<'a> Sync for CommittedItem<'a>
impl<'a> Unpin for CommittedItem<'a>
impl<'a> UnsafeUnpin for CommittedItem<'a>
impl<'a> UnwindSafe for CommittedItem<'a>
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