Skip to main content

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.

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.13.tar.gz (8.9 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.13-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

Hashes for llama_agents_client-0.3.13.tar.gz
Algorithm Hash digest
SHA256 71740e7db7353a3e8475b62ec5876eb92c3a78788e05c025f47d26d9a21e5033
MD5 caf35dac1886cf714a0a18fbda9f6af5
BLAKE2b-256 2c4f7c730590d95972ad3a8da2e360a030fda0ff4f7c4af71ea27d7607af4a24

See more details on using hashes here.

File details

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

File metadata

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

Hashes for llama_agents_client-0.3.13-py3-none-any.whl
Algorithm Hash digest
SHA256 08f96cbe3fab3321a948c8b96b3fb01e5d1b4537aac67fe199b623b0c2415883
MD5 1bfb81038c350486bc8ce0989ca171c0
BLAKE2b-256 d29ae737e0427c594096fdfd8d4be72933afe7b12c2be2408bb1744b6ff51c1c

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.3.13 This release

2 files

0.3.12

2 files

0.3.11

2 files

0.3.10

2 files

0.3.9

2 files

0.3.8

2 files

0.3.7

2 files

0.3.6

2 files

0.3.5

2 files

0.3.4

2 files

0.3.3

2 files

0.3.1

2 files

0.3.0

2 files

0.2.3

2 files

0.2.2

2 files

0.2.1

2 files

0.2.0

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page