PydanticAI v2.53.0 adds ToolCallJudge to vet risky agent tool calls before execution

KhuyenTran16 · x · 2026-10-15

PydanticAI v2.53.0 introduces ToolCallJudge: agents connected to external tools can now have risky tool calls (deleting files, leaking sensitive data, other irreversible actions) reviewed and blocked before execution, adding a safety gate ahead of side effects.

The release also patches a high-severity bug (GHSA-6fqq-452j-qhrp): streamed requests through ConcurrencyLimitedModel / limitmodelconcurrency could keep their concurrency slot after early exit or cancellation, letting repeated streams block every request sharing the limiter. The fix changes limiter sharing semantics—model wrappers now raise UserError when sharing a limiter with the requesting agent, acquire() takes a slot on every call, and custom limiters must allow cross-task release(). v1 is unaffected.

Related event: PydanticAI 2.53.0 Adds ToolCallJudge to Screen Risky Tool Calls(2 posts)→

Original post →

More from coding & agent

coding & agent channel →