Spaces:
Running
Running
Update agent_llamaindex.py
Browse files- agent_llamaindex.py +2 -1
agent_llamaindex.py
CHANGED
@@ -25,7 +25,8 @@ def agent_llamaindex(config, prompt):
|
|
25 |
agent = OpenAIAgent.from_tools(
|
26 |
[tools[0], # built-in tools
|
27 |
date_tool], # custom tools
|
28 |
-
llm = llm,
|
|
|
29 |
verbose = True
|
30 |
)
|
31 |
|
|
|
25 |
agent = OpenAIAgent.from_tools(
|
26 |
[tools[0], # built-in tools
|
27 |
date_tool], # custom tools
|
28 |
+
llm = llm,
|
29 |
+
max_iterations = 10,
|
30 |
verbose = True
|
31 |
)
|
32 |
|