Add max_retries to insight_agent when producing structured output
This commit is contained in:
parent
d19d2b7f00
commit
0e0a5578b6
1 changed files with 1 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue