Skip to main content

agentstream

Read, transform, and write AI agent session logs across formats (Claude, Codex, Gemini) with AG-UI events as the canonical format.

Installation

pip install agentstream

Quick Start

import agentstream

# Discover all agent sessions
sessions = agentstream.discover_sessions("~/myproject")

# Read as grouped messages
for msg in agentstream.read_messages(sessions[0]):
    print(f"{msg.role}: {msg.text[:100]}")
    for tc in msg.tool_calls:
        print(f"  -> {tc.name}({tc.args})")

Development

uv venv
uv pip install -e ".[dev]"

# Run tests with coverage
uv run pytest

# Type checking (ty is Astral's fast type checker)
uv run ty check

# Linting
uv run ruff check agentstream

Version Management

Python and Node.js versions are centralized in .python-version and .node-version files at the repo root.

Auto-updated from version files:

  • CI workflows
  • devcontainer
  • Docker builds (via make up in backend/)

Manual updates required when changing versions:

File Settings to update
pyproject.toml requires-python, target-version (ruff), python-version (ty)
daemon/pyproject.toml requires-python, target-version
backend/api/pyproject.toml requires-python, target-version

Version policy:

  • SDK (agentstream): Supports Python 3.12+ for broad compatibility
  • Backend services (daemon, api): Require Python 3.13+ (we control deployment)

License

MIT

Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

wandb_agentstream-1.0.3-py3-none-any.whl (1.2 MB view details)

Uploaded Python 3

File details

Details for the file wandb_agentstream-1.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for wandb_agentstream-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 778e8dcfbfd747e2000a99b3e4fb7e146f1ce7527c26b8adb9f0ffa5a960fae7
MD5 7b681f31deb4254e1c533c0b6e9bab64
BLAKE2b-256 007229280c8886347aa2fbdbd8d3109503c131f756d153f72d820485119d8dff

See more details on using hashes here.

Provenance

The following attestation bundles were made for wandb_agentstream-1.0.3-py3-none-any.whl:

Publisher: release.yml on wandb/agentstream

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

1.0.6

1 file

1.0.5

1 file

1.0.4

1 file

This release

1.0.3 This release

1 file

1.0.2

1 file

1.0.0

1 file

0.7.14

1 file

0.7.13

1 file

0.7.12

1 file

0.7.11

1 file

0.7.8

1 file

0.7.7

1 file

0.7.6

1 file

0.7.5

1 file

0.7.4

1 file

0.7.3

1 file

0.7.2

1 file

0.7.1

1 file

0.7.0

1 file

0.6.11

1 file

0.6.9

1 file

0.6.8

1 file

0.6.7

1 file

0.6.6

1 file

0.6.5

1 file

0.6.4

1 file

0.6.3

1 file

0.6.1

1 file

0.6.0

1 file

0.5.4

1 file

0.5.3

1 file

0.5.2

1 file

0.5.1

1 file

0.4.3

1 file

0.4.0

1 file

Supported by

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