Set retries to 3 for agents that did not have it.
This commit is contained in:
parent
076f11d4dd
commit
e73486b7a8
2 changed files with 2 additions and 0 deletions
|
|
@ -29,6 +29,7 @@ def create_chat_agent(config: AppConfig) -> Agent[ChatDeps, str]:
|
|||
deps_type=ChatDeps,
|
||||
output_type=str,
|
||||
instructions=CHAT_SYSTEM_PROMPT,
|
||||
retries=3,
|
||||
)
|
||||
|
||||
@agent.tool
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@ class SearchAgent:
|
|||
deps_type=SearchDeps,
|
||||
output_type=str,
|
||||
instructions=SEARCH_SYSTEM_PROMPT,
|
||||
retries=3,
|
||||
)
|
||||
|
||||
@self._agent.tool
|
||||
|
|
|
|||
Loading…
Reference in a new issue