#[non_exhaustive]pub struct LargeToolOutputConfig {
pub enabled: Option<bool>,
pub max_size_bytes: Option<u64>,
pub output_directory: Option<PathBuf>,
}Expand description
Configuration for large tool output handling.
When a tool produces output exceeding max_size_bytes,
the SDK writes the full output to a file in output_directory
and returns a truncated preview to the model.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.enabled: Option<bool>Whether large tool output handling is enabled. Defaults to true on the CLI.
max_size_bytes: Option<u64>Maximum tool output size in bytes before it is redirected to a file. Defaults to 50KB on the CLI.
output_directory: Option<PathBuf>Directory where large tool output files are written. Defaults to the OS temp directory on the CLI.
Implementations§
Source§impl LargeToolOutputConfig
impl LargeToolOutputConfig
Sourcepub fn new() -> Self
pub fn new() -> Self
Construct an empty LargeToolOutputConfig; all fields default to
unset (the CLI applies its own defaults).
Sourcepub fn with_enabled(self, enabled: bool) -> Self
pub fn with_enabled(self, enabled: bool) -> Self
Toggle large tool output handling on or off.
Sourcepub fn with_max_size_bytes(self, max_size_bytes: u64) -> Self
pub fn with_max_size_bytes(self, max_size_bytes: u64) -> Self
Set the maximum tool output size in bytes before it is redirected to a file.
Sourcepub fn with_output_directory<P: Into<PathBuf>>(
self,
output_directory: P,
) -> Self
pub fn with_output_directory<P: Into<PathBuf>>( self, output_directory: P, ) -> Self
Set the directory where large tool output files are written.
Trait Implementations§
Source§impl Clone for LargeToolOutputConfig
impl Clone for LargeToolOutputConfig
Source§fn clone(&self) -> LargeToolOutputConfig
fn clone(&self) -> LargeToolOutputConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more