#[non_exhaustive]pub enum EventPurpose {
Prewarm,
SessionTitle,
Compaction,
}Expand description
Agent-declared reason for a provider call.
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.
Prewarm
The Agent explicitly disables generation while warming a provider connection. Its observed usage is retained but is outside completed inference-turn usage.
SessionTitle
The Agent asks the model to name the session the call belongs to.
Compaction
The Agent asks the model to summarize the conversation so far, to continue from the summary instead of the full history.
Trait Implementations§
Source§impl Clone for EventPurpose
impl Clone for EventPurpose
impl Copy for EventPurpose
Source§impl Debug for EventPurpose
impl Debug for EventPurpose
Source§impl<'de> Deserialize<'de> for EventPurpose
impl<'de> Deserialize<'de> for EventPurpose
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 EventPurpose
Source§impl PartialEq for EventPurpose
impl PartialEq for EventPurpose
Source§impl Serialize for EventPurpose
impl Serialize for EventPurpose
impl StructuralPartialEq for EventPurpose
Auto Trait Implementations§
impl Freeze for EventPurpose
impl RefUnwindSafe for EventPurpose
impl Send for EventPurpose
impl Sync for EventPurpose
impl Unpin for EventPurpose
impl UnsafeUnpin for EventPurpose
impl UnwindSafe for EventPurpose
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