Skip to main content

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_event for injecting events into running workflows
  • Bring your own httpx.AsyncClient for custom auth, headers, or transport

Documentation

See the full deployment guide for detailed usage and API reference.

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_agents_client-0.3.8.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

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

llama_agents_client-0.3.8-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file llama_agents_client-0.3.8.tar.gz.

File metadata

  • Download URL: llama_agents_client-0.3.8.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","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

Hashes for llama_agents_client-0.3.8.tar.gz
Algorithm Hash digest
SHA256 882c9a750433900d5e065f3bcc1c7f89fde90436c31a67677a79afac6736c2de
MD5 7faa6c88af5c1784aa862830478db8a0
BLAKE2b-256 2c40624c040a88ec9bfe815604fbc46a87bcacaa100b70eaa10c523368c66d67

See more details on using hashes here.

File details

Details for the file llama_agents_client-0.3.8-py3-none-any.whl.

File metadata

  • Download URL: llama_agents_client-0.3.8-py3-none-any.whl
  • Upload date:
  • Size: 10.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","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

Hashes for llama_agents_client-0.3.8-py3-none-any.whl
Algorithm Hash digest
SHA256 5668628efae4dfc107f16a9b261de49e08e68dd3e958a22ed862e8b9f20f785a
MD5 1c7bbd92013f07218b5da34cc346768f
BLAKE2b-256 003f242ac2424b24b28f753bfe145d7b3d594c9ba53a5b466fee6aa54f4d7384

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