Spaces:
Running
Running
Daniel Amendoeira
commited on
Update agent.py
Browse files
agent.py
CHANGED
@@ -22,6 +22,16 @@ llm = ChatOpenAI(
|
|
22 |
temperature=0
|
23 |
)
|
24 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
calculator_tool = Calculator()
|
26 |
python_tool = PythonAstREPLTool()
|
27 |
search_tool = BraveSearch.from_api_key(
|
|
|
22 |
temperature=0
|
23 |
)
|
24 |
|
25 |
+
|
26 |
+
#TEST
|
27 |
+
try:
|
28 |
+
response = llm.invoke([HumanMessage(content="Say hello")])
|
29 |
+
print("LLM Response:", response.content)
|
30 |
+
except Exception as e:
|
31 |
+
print("LLM Error:", e)
|
32 |
+
#TEST
|
33 |
+
|
34 |
+
|
35 |
calculator_tool = Calculator()
|
36 |
python_tool = PythonAstREPLTool()
|
37 |
search_tool = BraveSearch.from_api_key(
|