fix: handle BaseModel result in guardrail retry loop
The guardrail retry path passed a Pydantic object directly to TaskOutput.raw (which expects a string), causing a ValidationError when output_pydantic is set and a guardrail fails. Mirror the BaseModel check from the initial execution path into both sync and async retry loops. Closes #5544 (part 1)
G
Greyson LaLonde committed
01b84379409574e4bd8f292bd693bfd50375d77b
Parent: 2c08f54
Committed by GitHub <noreply@github.com>
on 4/20/2026, 5:59:42 PM