wt002 commited on
Commit
ba80365
·
verified ·
1 Parent(s): 1dfef0f

Update agent.py

Browse files
Files changed (1) hide show
  1. agent.py +5 -5
agent.py CHANGED
@@ -62,7 +62,7 @@ def build_graph(tools: list, agent: AgentExecutor) -> StateGraph:
62
 
63
  return workflow.compile()
64
 
65
- class AIAgent:
66
  def __init__(self, model_name: str = "gpt-4-turbo"):
67
  self.tools = [wikipedia_search, web_search, calculate]
68
  self.llm = ChatOpenAI(model=model_name, temperature=0.7)
@@ -101,7 +101,7 @@ class AIAgent:
101
  return steps
102
 
103
  # Example usage
104
- if __name__ == "__main__":
105
- agent = AIAgent()
106
- response = agent("What's the capital of France?")
107
- print(response)
 
62
 
63
  return workflow.compile()
64
 
65
+ class AdvancedAIAgent:
66
  def __init__(self, model_name: str = "gpt-4-turbo"):
67
  self.tools = [wikipedia_search, web_search, calculate]
68
  self.llm = ChatOpenAI(model=model_name, temperature=0.7)
 
101
  return steps
102
 
103
  # Example usage
104
+ #if __name__ == "__main__":
105
+ # agent = AdvancedAIAgent()
106
+ # response = agent("What's the capital of France?")
107
+ # print(response)