HTTP client for connecting to and interacting with LlamaIndex workflow servers
Project description
LlamaAgents Client
Async HTTP client for interacting with deployed llama-agents-server instances.
Installation
pip install llama-agents-client
Quick Start
import asyncio
from llama_agents.client import WorkflowClient
async def main():
client = WorkflowClient(base_url="http://localhost:8080")
# Run a workflow asynchronously
handler = await client.run_workflow_nowait("my_workflow")
# Stream events as they are produced
async for event in client.get_workflow_events(handler.handler_id):
print(f"Event: {event.type} -> {event.value}")
# Get the final result
result = await client.get_handler(handler.handler_id)
print(f"Result: {result.result} (status: {result.status})")
asyncio.run(main())
Features
- Run workflows synchronously or asynchronously
- Stream events in real-time as a workflow executes
- Human-in-the-loop support via
send_eventfor injecting events into running workflows - Bring your own
httpx.AsyncClientfor custom auth, headers, or transport
Documentation
See the full deployment guide for detailed usage and API reference.
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
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_agents_client-0.3.1.tar.gz.
File metadata
- Download URL: llama_agents_client-0.3.1.tar.gz
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fe01042714bb10a0618b93097a12f8ae3f241abae0d12837e4670d17899555d6
|
|
| MD5 |
dc4ca6fb8ffec81b497286e6abf592e2
|
|
| BLAKE2b-256 |
a9eed3a04d9182e95aaef6811c832f0cf600ca3320b58c211facc3f42e353c1c
|
File details
Details for the file llama_agents_client-0.3.1-py3-none-any.whl.
File metadata
- Download URL: llama_agents_client-0.3.1-py3-none-any.whl
- Upload date:
- Size: 10.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2d1b61b87d998e1fdbe02ee2253ef51b0991f729cfe58e2af1303e346154cdac
|
|
| MD5 |
1e964b276d2ffe5c31a78215f64d1774
|
|
| BLAKE2b-256 |
2d1df4ae01cab51c368aef2355da45f8229e0378eb6cacdb576d24fa76dbaae3
|