Spaces:
Sleeping
Sleeping
fix: using self.agent
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ class BasicAgent:
|
|
16 |
self.agent = BasicOpenAIAgentWorkflow(
|
17 |
tools=[] # search_web_extract_info
|
18 |
)
|
19 |
-
self.workflow =
|
20 |
print("BasicAgent initialized.")
|
21 |
def __call__(self, question: str) -> str:
|
22 |
print(f"Agent received question (first 50 chars): {question[:50]}...")
|
|
|
16 |
self.agent = BasicOpenAIAgentWorkflow(
|
17 |
tools=[] # search_web_extract_info
|
18 |
)
|
19 |
+
self.workflow = 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]}...")
|