pub struct ToolResultRouting {
pub default_region: String,
pub tool_overrides: HashMap<String, String>,
pub persist: bool,
pub max_result_tokens: Option<usize>,
}Expand description
Configuration for routing tool results to specific context window regions.
Fields§
§default_region: StringDefault region for tool results (default: “tool_results”)
tool_overrides: HashMap<String, String>Per-tool overrides: tool_name → region_name
persist: boolWhether to keep tool results (true) or discard after use (false)
max_result_tokens: Option<usize>Max tokens per tool result (truncate if larger)
Trait Implementations§
Source§impl Clone for ToolResultRouting
impl Clone for ToolResultRouting
Source§fn clone(&self) -> ToolResultRouting
fn clone(&self) -> ToolResultRouting
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ToolResultRouting
impl Debug for ToolResultRouting
Source§impl Default for ToolResultRouting
impl Default for ToolResultRouting
Source§impl<'de> Deserialize<'de> for ToolResultRouting
impl<'de> Deserialize<'de> for ToolResultRouting
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 ToolResultRouting
impl RefUnwindSafe for ToolResultRouting
impl Send for ToolResultRouting
impl Sync for ToolResultRouting
impl Unpin for ToolResultRouting
impl UnsafeUnpin for ToolResultRouting
impl UnwindSafe for ToolResultRouting
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