pub enum Source {
Tool(String),
Attachment(String),
}Expand description
What a load event came from. Attachments are a load class in their own
right (V78): hook output and injected context cost input tokens just
as a tool result does, and counting only tool results would inflate
unaccounted while the data sat in the transcript.
Variants§
Tool(String)
A tool returned something into the context.
Attachment(String)
Hook output, a reminder, injected context.
Implementations§
Trait Implementations§
impl Eq for Source
impl StructuralPartialEq for Source
Auto Trait Implementations§
impl Freeze for Source
impl RefUnwindSafe for Source
impl Send for Source
impl Sync for Source
impl Unpin for Source
impl UnsafeUnpin for Source
impl UnwindSafe for Source
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