Add max_retries to insight_agent when producing structured output

This commit is contained in:
Yiorgis Gozadinos 2025-11-03 15:01:24 +02:00
parent d19d2b7f00
commit 0e0a5578b6
No known key found for this signature in database

View file

@ -242,6 +242,7 @@ For each insight, reference which result numbers (0, 1, 2, etc.) support it."""
insight_agent: Agent[None, InsightsList] = Agent(
ctx.model,
output_type=InsightsList,
retries=3,
)
result = await insight_agent.run(extract_prompt)