Skip to content

Commit

Permalink
tutorial100
Browse files Browse the repository at this point in the history
  • Loading branch information
ronidas39 committed Jul 1, 2024
1 parent b76bf39 commit 93c2f3a
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tutorial100/main.py
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")
10 changes: 10 additions & 0 deletions tutorial100/qsn.txt
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 added tutorial100/tutorial100.pptx
Binary file not shown.

0 comments on commit 93c2f3a

Please sign in to comment.