pub struct StepContextConfig {
pub max_tokens: usize,
pub include_tool_results: bool,
pub include_reasoning: bool,
pub include_errors: bool,
pub max_tool_results: usize,
pub truncate_long_content: bool,
pub max_content_length: usize,
}Expand description
Context extraction configuration
Fields§
§max_tokens: usizeMaximum tokens for step context
include_tool_results: boolInclude tool call results
include_reasoning: boolInclude reasoning/chain-of-thought
include_errors: boolInclude error context
max_tool_results: usizeMaximum tool results to include
truncate_long_content: boolTruncate long content
max_content_length: usizeMaximum content length before truncation
Trait Implementations§
Source§impl Clone for StepContextConfig
impl Clone for StepContextConfig
Source§fn clone(&self) -> StepContextConfig
fn clone(&self) -> StepContextConfig
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 StepContextConfig
impl Debug for StepContextConfig
Source§impl Default for StepContextConfig
impl Default for StepContextConfig
Source§impl<'de> Deserialize<'de> for StepContextConfig
impl<'de> Deserialize<'de> for StepContextConfig
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
Auto Trait Implementations§
impl Freeze for StepContextConfig
impl RefUnwindSafe for StepContextConfig
impl Send for StepContextConfig
impl Sync for StepContextConfig
impl Unpin for StepContextConfig
impl UnsafeUnpin for StepContextConfig
impl UnwindSafe for StepContextConfig
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