pub struct ToolOutputLimit {
pub max_bytes: usize,
pub action: ToolOutputOverflowAction,
}Expand description
Per-tool output limit configuration.
Fields§
§max_bytes: usizeMaximum model-facing bytes allowed for this tool result.
action: ToolOutputOverflowActionOverflow behaviour once max_bytes is exceeded.
Implementations§
Source§impl ToolOutputLimit
impl ToolOutputLimit
Sourcepub fn inline_clip(max_bytes: usize) -> Self
pub fn inline_clip(max_bytes: usize) -> Self
Clip output inline if it exceeds max_bytes.
Sourcepub fn store_for_readback(max_bytes: usize) -> Self
pub fn store_for_readback(max_bytes: usize) -> Self
Store oversized output in the configured artifact store for bounded readback.
Trait Implementations§
Source§impl Clone for ToolOutputLimit
impl Clone for ToolOutputLimit
Source§fn clone(&self) -> ToolOutputLimit
fn clone(&self) -> ToolOutputLimit
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 ToolOutputLimit
impl Debug for ToolOutputLimit
Source§impl<'de> Deserialize<'de> for ToolOutputLimit
impl<'de> Deserialize<'de> for ToolOutputLimit
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 ToolOutputLimit
impl PartialEq for ToolOutputLimit
Source§fn eq(&self, other: &ToolOutputLimit) -> bool
fn eq(&self, other: &ToolOutputLimit) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ToolOutputLimit
impl Serialize for ToolOutputLimit
impl Eq for ToolOutputLimit
impl StructuralPartialEq for ToolOutputLimit
Auto Trait Implementations§
impl Freeze for ToolOutputLimit
impl RefUnwindSafe for ToolOutputLimit
impl Send for ToolOutputLimit
impl Sync for ToolOutputLimit
impl Unpin for ToolOutputLimit
impl UnsafeUnpin for ToolOutputLimit
impl UnwindSafe for ToolOutputLimit
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