Spaces:
Restarting
Restarting
Update agent.py
Browse files
agent.py
CHANGED
@@ -62,7 +62,7 @@ def build_graph(tools: list, agent: AgentExecutor) -> StateGraph:
|
|
62 |
|
63 |
return workflow.compile()
|
64 |
|
65 |
-
class
|
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 =
|
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)
|