Skip to main content

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.

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

llama_index_agent_lats-0.3.2.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

llama_index_agent_lats-0.3.2-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file llama_index_agent_lats-0.3.2.tar.gz.

File metadata

File hashes

Hashes for llama_index_agent_lats-0.3.2.tar.gz
Algorithm Hash digest
SHA256 b8236b24d3be76b4102a95154e6c5b687b736a0803b8a69a244ce3baf39b2bb7
MD5 0676a47bea07c5bcdf68c08d2b7f62fd
BLAKE2b-256 bb10fa4f4a91d4fe964f570ccae27a59fa102c07ffda5eab64094845d3b142f2

See more details on using hashes here.

File details

Details for the file llama_index_agent_lats-0.3.2-py3-none-any.whl.

File metadata

File hashes

Hashes for llama_index_agent_lats-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2ee96ecba823bb691aa016e66ef4d1dd2ff74b11b81090a5ab62861f31566820
MD5 9ae220d91b83a1058bee94b45a1fff86
BLAKE2b-256 4f78163eee67e6f7b35efb16c5d51f2fc25afdf69129b3a03003eb547698d826

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page