MCPcopy Create free account
hub / github.com/AI45Lab/Code / max_read_bytes

Method max_read_bytes

core/src/workspace/s3.rs:183–186  ·  view source on GitHub ↗

Override the per-read size ceiling. `0` is rejected at backend construction time as a configuration mistake. See [`DEFAULT_MAX_READ_BYTES`].

(mut self, bytes: u64)

Source from the content-addressed store, hash-verified

181 /// Override the per-read size ceiling. `0` is rejected at backend
182 /// construction time as a configuration mistake. See [`DEFAULT_MAX_READ_BYTES`].
183 pub fn max_read_bytes(mut self, bytes: u64) -> Self {
184 self.max_read_bytes = Some(bytes);
185 self
186 }
187
188 /// Enable degraded `grep` / `glob` against this S3 backend. Off by default.
189 /// See the documentation on [`Self::search_enabled`] for cost caveats.

Calls

no outgoing calls