-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
from langchain_openai import ChatOpenAI | ||
from langchain.agents import load_tools,initialize_agent,AgentType | ||
llm=ChatOpenAI(temperature=0.0,model="gpt-4o") | ||
tools=load_tools(["llm-math","wikipedia"],llm=llm) | ||
agent=initialize_agent( | ||
tools, | ||
llm, | ||
agent=AgentType.CHAT_ZERO_SHOT_REACT_DESCRIPTION, | ||
handle_parsingh_errors=True, | ||
verbose=True | ||
) | ||
agent("give some information on virat kohli Indian cricket player") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
|
||
1. If you have a rectangular room with dimensions 10 meters by 7 meters, what is the total area of the room in square meters? | ||
|
||
2. A circular flower bed has a radius of 5 meters. What is the total area of the flower bed in square meters? | ||
|
||
3. A triangular plot of land has a base of 10 meters and a height of 6 meters. What is the total area of the plot in square meters? | ||
|
||
what information you have for company openai | ||
give some information on virat kohli Indian cricket player | ||
|
Binary file not shown.