Daniel Amendoeira commited on
Commit
c1fe8d5
·
verified ·
1 Parent(s): 900ec4e

Update agent.py

Browse files
Files changed (1) hide show
  1. agent.py +10 -0
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(