kostasang commited on
Commit
916895b
·
verified ·
1 Parent(s): 891f6e3

Upload agent.py

Browse files
Files changed (1) hide show
  1. src/agent.py +0 -11
src/agent.py CHANGED
@@ -47,17 +47,6 @@ class Agent:
47
  self.graph = self.__build_graph()
48
 
49
  def __call__(self, question: str) -> str:
50
- """
51
- Call the agent with a question.
52
- :param question: The question to ask the agent.
53
- :return: The agent's response.
54
- """
55
- reply = self.reply(question)
56
- reply = json.loads(reply)
57
- answer = reply.get("answer", "")
58
- return answer
59
-
60
- def reply(self, question: str) -> str:
61
  """
62
  Reply to a question using the agent and return the agents full reply
63
  with reasoning included.
 
47
  self.graph = self.__build_graph()
48
 
49
  def __call__(self, question: str) -> str:
 
 
 
 
 
 
 
 
 
 
 
50
  """
51
  Reply to a question using the agent and return the agents full reply
52
  with reasoning included.