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

Method with_parse_retries

core/src/agent_api/session_options.rs:385–388  ·  view source on GitHub ↗

Set the maximum number of consecutive malformed-tool-args errors before the agent loop bails. Default: 2 (the LLM gets two chances to self-correct before the session is aborted).

(mut self, max: u32)

Source from the content-addressed store, hash-verified

383 /// Default: 2 (the LLM gets two chances to self-correct before the session
384 /// is aborted).
385 pub fn with_parse_retries(mut self, max: u32) -> Self {
386 self.max_parse_retries = Some(max);
387 self
388 }
389
390 /// Set a per-tool execution timeout.
391 ///

Callers 4

sessionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected