pub struct WorkspaceToolLimits {
pub max_read_bytes: usize,
pub max_read_lines: usize,
pub max_write_bytes: usize,
pub max_patch_bytes: usize,
}Expand description
Limits applied by workspace tools.
Fields§
§max_read_bytes: usizeMaximum bytes returned or scanned by one text read_file request.
max_read_lines: usizeMaximum lines returned by one text read_file request, also used when omitted.
Defaults to 2,000 lines; the independent byte limit still applies.
max_write_bytes: usizeMaximum bytes written to one file by apply_patch.
max_patch_bytes: usizeMaximum bytes accepted in one apply_patch patch payload.
Trait Implementations§
Source§impl Clone for WorkspaceToolLimits
impl Clone for WorkspaceToolLimits
Source§fn clone(&self) -> WorkspaceToolLimits
fn clone(&self) -> WorkspaceToolLimits
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 WorkspaceToolLimits
impl Debug for WorkspaceToolLimits
Source§impl Default for WorkspaceToolLimits
impl Default for WorkspaceToolLimits
Source§fn default() -> WorkspaceToolLimits
fn default() -> WorkspaceToolLimits
Returns the “default value” for a type. Read more
impl Eq for WorkspaceToolLimits
Source§impl PartialEq for WorkspaceToolLimits
impl PartialEq for WorkspaceToolLimits
impl StructuralPartialEq for WorkspaceToolLimits
Auto Trait Implementations§
impl Forget for WorkspaceToolLimits
impl Freeze for WorkspaceToolLimits
impl Move for WorkspaceToolLimits
impl RefUnwindSafe for WorkspaceToolLimits
impl Send for WorkspaceToolLimits
impl Sync for WorkspaceToolLimits
impl Unpin for WorkspaceToolLimits
impl UnsafeUnpin for WorkspaceToolLimits
impl UnwindSafe for WorkspaceToolLimits
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.