llama-index agent llm compiler integration
Project description
LlamaIndex Agent Integration: LLM Compiler
This Agent integration implements the LLMCompiler agent paper.
A lot of code came from the source repo, we repurposed with LlamaIndex abstractions. All credits to the original authors for a great work!
Usage
First install the package:
pip install llama-index-agent-llm-compiler
# setup pack arguments
from llama_index.core.agent import AgentRunner
from llama_index.agent.llm_compiler.step import LLMCompilerAgentWorker
agent_worker = LLMCompilerAgentWorker.from_tools(
tools, llm=llm, verbose=True, callback_manager=callback_manager
)
agent = AgentRunner(agent_worker, callback_manager=callback_manager)
# start using the agent
response = agent.chat("What is (121 * 3) + 42?")
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file llama_index_agent_llm_compiler-0.3.1.tar.gz.
File metadata
- Download URL: llama_index_agent_llm_compiler-0.3.1.tar.gz
- Upload date:
- Size: 19.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
af2e25b78a721b1edd3124ddb5588aab912dc357fed1ab9818a659db8270969d
|
|
| MD5 |
f3cd2c0569f86b7e8c62dbe2cf43d8e0
|
|
| BLAKE2b-256 |
c264475cf0ff44c9d6b4191f0fc68cc63fc8d093e4f184142e3835f03b1e4f41
|
File details
Details for the file llama_index_agent_llm_compiler-0.3.1-py3-none-any.whl.
File metadata
- Download URL: llama_index_agent_llm_compiler-0.3.1-py3-none-any.whl
- Upload date:
- Size: 21.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a620490ca3dc5a95ffa42534e05ed57b014c2f7b54db00a3d88ff717ef11eeb
|
|
| MD5 |
ba5539a7a91de6be23e12ab22192bc1a
|
|
| BLAKE2b-256 |
b17aeb8fe7a22f9cec0758d16cc5bd9afb12f53a3f36d5fd0014d2524c2bfb7f
|