laverdes commited on
Commit
b64eba5
·
verified ·
1 Parent(s): c52908f

fix: agent init

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -16,12 +16,12 @@ class BasicAgent:
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]}...")
23
- answer = self.workflow(question)
24
- print(f"Agent returning fixed answer: {answer}")
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