llama-index agent lats integration
Project description
Language Agent Tree Search (LATS) Agent
This agent integration implements the Language Agent Tree Search method introduced in the paper titled "Language Agent Tree Search Unifies Reasoning Acting and Planning in Language Models" by Zhou et al. 2023.
We have a full cookbook on using the LATS agent here: https://github.com/run-llama/llama_index/blob/main/docs/docs/examples/agent/lats_agent.ipynb.
Check out the source paper: https://arxiv.org/pdf/2310.04406.pdf
Usage
LATS is implemented as a BaseAgentWorker
and as such is used with an AgentRunner
.
from llama_index.agent.lats import LATSAgentWorker
from llama_index.core.agent import AgentRunner
tools = ...
llm = ...
agent_worker = LATSAgentWorker(tools=tools, llm=llm)
agent = AgentRunner(agent_worker)
agent.chat(...)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for llama_index_agent_lats-0.2.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd4b0cbe5ad905f86976aa15402fe357e74d67fedd6c5efb1cb94569f44bd7bd |
|
MD5 | 379987f65fbde514c94ad9b451aa9fd4 |
|
BLAKE2b-256 | f27453237b9d7bb222c388f15cca4b08b661caeeb10b5ee15f0ee2453dcac79c |
Close
Hashes for llama_index_agent_lats-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 707d441ee49af9697cd1f2ff401cb1ec2b459923017ad471e0fb44d5ca7d16c5 |
|
MD5 | 4337d9648d51760ec033810d330859c5 |
|
BLAKE2b-256 | faaa9d1f13b4788a120a1191202faaa97db062ccca26c36368a97edd6ec9168d |