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)
| 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 | /// |
no outgoing calls
no test coverage detected