#[non_exhaustive]pub struct Caps {
pub session: SessionSupport,
pub fork: bool,
pub events: bool,
pub native_system: bool,
}Expand description
What an agent supports. Used to reject an impossible request before spawning rather than silently doing something weaker than asked.
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.session: SessionSupportHow a native session id is obtained, if at all.
fork: boolWhether resuming can branch a new session instead of appending in place.
events: boolWhether the agent emits a structured event stream this crate normalizes.
native_system: boolWhether the agent takes a real system-prompt flag. When false the system text is prepended to the prompt so it still reaches the model.
Trait Implementations§
impl Copy for Caps
impl Eq for Caps
impl StructuralPartialEq for Caps
Auto Trait Implementations§
impl Freeze for Caps
impl RefUnwindSafe for Caps
impl Send for Caps
impl Sync for Caps
impl Unpin for Caps
impl UnsafeUnpin for Caps
impl UnwindSafe for Caps
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