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

Method operation_timeout

core/src/workspace/mod.rs:669–671  ·  view source on GitHub ↗

Default timeout applied to non-bash workspace operations. `None` means no enforced timeout. Backends that may stall (remote, browser, DFS) should set this so tools using [`Self::run_with_timeout`] surface a timeout error instead of letting the agent loop hang.

(&self)

Source from the content-addressed store, hash-verified

667 /// browser, DFS) should set this so tools using [`Self::run_with_timeout`]
668 /// surface a timeout error instead of letting the agent loop hang.
669 pub fn operation_timeout(&self) -> Option<std::time::Duration> {
670 self.operation_timeout
671 }
672
673 /// Run a workspace future under the configured operation timeout.
674 ///

Callers 1

from_s3_backendMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected