pub struct ContextModifier {
pub system_injection: Option<String>,
pub max_tokens_override: Option<u32>,
pub custom_context: Vec<(String, Value)>,
pub max_steps_delta: Option<i32>,
}Expand description
Modifier that a tool can return to change agent runtime behavior.
Fields§
§system_injection: Option<String>§max_tokens_override: Option<u32>§custom_context: Vec<(String, Value)>§max_steps_delta: Option<i32>Implementations§
Trait Implementations§
Source§impl Clone for ContextModifier
impl Clone for ContextModifier
Source§fn clone(&self) -> ContextModifier
fn clone(&self) -> ContextModifier
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ContextModifier
impl Debug for ContextModifier
Source§impl Default for ContextModifier
impl Default for ContextModifier
Source§fn default() -> ContextModifier
fn default() -> ContextModifier
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ContextModifier
impl RefUnwindSafe for ContextModifier
impl Send for ContextModifier
impl Sync for ContextModifier
impl Unpin for ContextModifier
impl UnsafeUnpin for ContextModifier
impl UnwindSafe for ContextModifier
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