Skip to content

Commit

Permalink
t17
Browse files Browse the repository at this point in the history
  • Loading branch information
ronidas39 committed Dec 16, 2023
1 parent 5e38c54 commit 2906b3c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
Binary file added tutorial17/.DS_Store
Binary file not shown.
7 changes: 7 additions & 0 deletions tutorial17/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from langchain.agents import AgentType,initialize_agent,load_tools
from langchain.chat_models import ChatOpenAI
from langchain.tools import ShellTool
llm=ChatOpenAI(temperature=0,model="gpt-4")
shell_tool=ShellTool()
agent=initialize_agent([shell_tool],llm,agent=AgentType.CHAT_ZERO_SHOT_REACT_DESCRIPTION,verbose=True)
agent.run("delete all files from present directory except the .py file")
Binary file modified tutorial17/tutorial17.pptx
Binary file not shown.

0 comments on commit 2906b3c

Please sign in to comment.