pub enum ToolOutputOverflowAction {
Fail,
InlineClip,
StoreForReadback,
}Expand description
What the executor should do when a tool result exceeds its configured model-facing byte budget.
Variants§
Fail
Return an execution failure instead of placing an oversized result in the transcript. Use this for readback tools where silent truncation would reintroduce an unbounded loop.
InlineClip
Clip the output inline with an explicit truncation marker.
StoreForReadback
Store the full output in the configured tool-result artifact store and
return a small pointer envelope that can be read back with
tool_result_read.
Trait Implementations§
Source§impl Clone for ToolOutputOverflowAction
impl Clone for ToolOutputOverflowAction
Source§fn clone(&self) -> ToolOutputOverflowAction
fn clone(&self) -> ToolOutputOverflowAction
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 ToolOutputOverflowAction
impl Debug for ToolOutputOverflowAction
Source§impl<'de> Deserialize<'de> for ToolOutputOverflowAction
impl<'de> Deserialize<'de> for ToolOutputOverflowAction
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
Source§impl PartialEq for ToolOutputOverflowAction
impl PartialEq for ToolOutputOverflowAction
Source§fn eq(&self, other: &ToolOutputOverflowAction) -> bool
fn eq(&self, other: &ToolOutputOverflowAction) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ToolOutputOverflowAction
impl Serialize for ToolOutputOverflowAction
impl Eq for ToolOutputOverflowAction
impl StructuralPartialEq for ToolOutputOverflowAction
Auto Trait Implementations§
impl Freeze for ToolOutputOverflowAction
impl RefUnwindSafe for ToolOutputOverflowAction
impl Send for ToolOutputOverflowAction
impl Sync for ToolOutputOverflowAction
impl Unpin for ToolOutputOverflowAction
impl UnsafeUnpin for ToolOutputOverflowAction
impl UnwindSafe for ToolOutputOverflowAction
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