Mohammad Haghir commited on
Commit ·
5e6cf45
1
Parent(s): 474f370
agent
Browse files
app.py
CHANGED
|
@@ -38,7 +38,7 @@ class BasicAgent:
|
|
| 38 |
print("BasicAgent initialized.")
|
| 39 |
self.graph = self.create_graph()
|
| 40 |
|
| 41 |
-
def
|
| 42 |
response = (self.graph).invoke({"messages": question})
|
| 43 |
return response
|
| 44 |
|
|
|
|
| 38 |
print("BasicAgent initialized.")
|
| 39 |
self.graph = self.create_graph()
|
| 40 |
|
| 41 |
+
def __call__(self, question: str) -> str:
|
| 42 |
response = (self.graph).invoke({"messages": question})
|
| 43 |
return response
|
| 44 |
|