Spaces:
Runtime error
Runtime error
update
Browse files
app.py
CHANGED
|
@@ -26,6 +26,14 @@ calculator_agent = ReActAgent(
|
|
| 26 |
llm=llm,
|
| 27 |
)
|
| 28 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
query_agent = ReActAgent(
|
| 30 |
name="query_agent",
|
| 31 |
description="A query agent that can query the internet.",
|
|
|
|
| 26 |
llm=llm,
|
| 27 |
)
|
| 28 |
|
| 29 |
+
query_engine = index.as_query_engine(llm=llm)
|
| 30 |
+
query_engine_tool = QueryEngineTool.from_defaults(
|
| 31 |
+
query_engine=query_engine,
|
| 32 |
+
name="personas",
|
| 33 |
+
description="descriptions for various types of personas",
|
| 34 |
+
return_direct=False,
|
| 35 |
+
)
|
| 36 |
+
|
| 37 |
query_agent = ReActAgent(
|
| 38 |
name="query_agent",
|
| 39 |
description="A query agent that can query the internet.",
|