Resume failed PydanticAI agent workflows without repeating tool calls via AgentRunResult

KhuyenTran16 · x · 2026-10-08

When an agent crashes mid-workflow, a full retry may redo tool calls that already succeeded, wasting time and API costs. Khuyen Tran highlights PydanticAI's AgentRunResult, which stores output alongside the run context, making failed workflows easier to recover, debug and audit without repeating completed tool calls.

Related event: PydanticAI tip: resume crashed agent workflows without re-running tools(2 posts)→

Original post →

More from coding & agent

coding & agent channel →