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

Method with_tool_timeout

core/src/agent_api/session_options.rs:395–398  ·  view source on GitHub ↗

Set a per-tool execution timeout. When set, each tool execution is wrapped in `tokio::time::timeout`. A timeout produces an error message that is fed back to the LLM (the session continues).

(mut self, timeout_ms: u64)

Source from the content-addressed store, hash-verified

393 /// A timeout produces an error message that is fed back to the LLM
394 /// (the session continues).
395 pub fn with_tool_timeout(mut self, timeout_ms: u64) -> Self {
396 self.tool_timeout_ms = Some(timeout_ms);
397 self
398 }
399
400 /// Set the circuit-breaker threshold.
401 ///

Callers 5

sessionMethod · 0.80

Calls

no outgoing calls

Tested by 1