Skip to content

Commit

Permalink
tutorial19
Browse files Browse the repository at this point in the history
  • Loading branch information
ronidas39 committed Dec 18, 2023
1 parent 1c9cd2a commit f1cca5c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tutorial19/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from langchain.agents import initialize_agent,AgentType,load_tools
from langchain.chat_models import ChatOpenAI
from langchain.globals import set_debug
set_debug(True)

llm=ChatOpenAI(temperature=0,model="gpt-4")
tools=load_tools(["ddg-search"],llm=llm)
agent=initialize_agent(tools,llm,agent=AgentType.ZERO_SHOT_REACT_DESCRIPTION,verbose=True)
agent.run("what is the current weather conditions in India accross different top cities")
Binary file modified tutorial19/tutorial19.pptx
Binary file not shown.

0 comments on commit f1cca5c

Please sign in to comment.