langchain/templates/openai-functions-agent
Erick Friis ebf998acb6
Templates (#12294)
Co-authored-by: Harrison Chase <hw.chase.17@gmail.com>
Co-authored-by: Lance Martin <lance@langchain.dev>
Co-authored-by: Jacob Lee <jacoblee93@gmail.com>
2023-10-25 18:47:42 -07:00
..
openai_functions_agent Templates (#12294) 2023-10-25 18:47:42 -07:00
tests Templates (#12294) 2023-10-25 18:47:42 -07:00
LICENSE Templates (#12294) 2023-10-25 18:47:42 -07:00
main.py Templates (#12294) 2023-10-25 18:47:42 -07:00
poetry.lock Templates (#12294) 2023-10-25 18:47:42 -07:00
pyproject.toml Templates (#12294) 2023-10-25 18:47:42 -07:00
README.md Templates (#12294) 2023-10-25 18:47:42 -07:00

OpenAI Functions Agent

This template creates an agent that uses OpenAI function calling to communicate its decisions of what actions to take. This example creates an agent that can optionally look up things on the internet using Tavily's search engine.

LLM

This template will use OpenAI by default.

Be sure that OPENAI_API_KEY is set in your environment.

Tools

This template will use Tavily by default.

Be sure that TAVILY_API_KEY is set in your environment.