|
|
@ -22,9 +22,9 @@ def search_api(query: str):
|
|
|
|
## Initialize the workflow
|
|
|
|
## Initialize the workflow
|
|
|
|
flow = Flow(
|
|
|
|
flow = Flow(
|
|
|
|
llm=llm,
|
|
|
|
llm=llm,
|
|
|
|
max_loops=5,
|
|
|
|
max_loops=2,
|
|
|
|
dashboard=True,
|
|
|
|
dashboard=True,
|
|
|
|
tools=[search_api]
|
|
|
|
# tools=[search_api]
|
|
|
|
# stopping_condition=None, # You can define a stopping condition as needed.
|
|
|
|
# stopping_condition=None, # You can define a stopping condition as needed.
|
|
|
|
# loop_interval=1,
|
|
|
|
# loop_interval=1,
|
|
|
|
# retry_attempts=3,
|
|
|
|
# retry_attempts=3,
|
|
|
|