Spaces:
Sleeping
Sleeping
fix: agent init
Browse files
app.py
CHANGED
@@ -16,12 +16,12 @@ class BasicAgent:
|
|
16 |
self.agent = BasicOpenAIAgentWorkflow(
|
17 |
tools=[] # search_web_extract_info
|
18 |
)
|
19 |
-
self.
|
20 |
print("BasicAgent initialized.")
|
21 |
def __call__(self, question: str) -> str:
|
22 |
print(f"Agent received question (first 50 chars): {question[:50]}...")
|
23 |
-
answer = self.
|
24 |
-
print(f"Agent returning
|
25 |
return answer
|
26 |
|
27 |
|
|
|
16 |
self.agent = BasicOpenAIAgentWorkflow(
|
17 |
tools=[] # search_web_extract_info
|
18 |
)
|
19 |
+
self.agent.create_basic_tool_use_agent_state_graph()
|
20 |
print("BasicAgent initialized.")
|
21 |
def __call__(self, question: str) -> str:
|
22 |
print(f"Agent received question (first 50 chars): {question[:50]}...")
|
23 |
+
answer = self.agent(question)
|
24 |
+
print(f"Agent returning answer: {answer}")
|
25 |
return answer
|
26 |
|
27 |
|