When the researcher agent exhausts its turn budget mid-investigation, rig now surfaces PromptError::MaxTurnsError with the chat history intact rather than nothing at all. Catch it, reconstruct a findings dump from whatever assistant text and tool results the run produced, and still write a report from that — clearly flagged as incomplete — instead of propagating the error and losing all the work. |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||