Skip to content

Commit

Permalink
tutorial14
Browse files Browse the repository at this point in the history
  • Loading branch information
ronidas39 committed Dec 12, 2023
1 parent e01fffe commit f419c03
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 1 deletion.
Binary file added tutorial13/.DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion tutorial13/agentrun.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
os.environ["SERPAPI_API_KEY"]="6bc26c990eab01a865f08b77ed174dbe4eb5a5b7f031b6a8ee621187228cf95e"
tools=load_tools(["serpapi","llm-math"],llm=llm)

agent=initialize_agent(tools,llm,agent=AgentType.ZERO_SHOT_REACT_DESCRIPTION,verbose=True)
agent=initialize_agent(tools,llm,agent=AgentType.ZERO_SHOT_REACT_DESCRIPTION,verbose=True,return_intermediate_steps=True)
with get_openai_callback() as cost:
result=agent.run("who is the present prime minister of India,what is hios current age raise to the power of .5")
print(f"total tokens: {cost.total_tokens}")
Expand Down
Binary file added tutorial14/tutorial14.pptx
Binary file not shown.

0 comments on commit f419c03

Please sign in to comment.