langchain/templates/xml-agent
2023-10-26 19:44:30 -07:00
..
tests Templates (#12294) 2023-10-25 18:47:42 -07:00
xml_agent Format Templates (#12396) 2023-10-26 19:44:30 -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

XML Agent

This template creates an agent that uses XML syntax to communicate its decisions of what actions to take. For this example, we use Anthropic since Anthropic's Claude models are particularly good at writing XML syntax. This example creates an agent that can optionally look up things on the internet using You.com's retriever.

LLM

This template will use Anthropic by default.

Be sure that ANTHROPIC_API_KEY is set in your environment.

Tools

This template will use You.com by default.

Be sure that YDC_API_KEY is set in your environment.