Read, transform, and write AI agent session logs across formats
Project description
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 upinbackend/)
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
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 wandb_agentstream-0.4.0-py3-none-any.whl.
File metadata
- Download URL: wandb_agentstream-0.4.0-py3-none-any.whl
- Upload date:
- Size: 882.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8d072a55b4f38e293da425cc9c3f719242b60ea4974e1a15f93b899e94e0fee8
|
|
| MD5 |
9131638380ce7d39a481bffea8752416
|
|
| BLAKE2b-256 |
45b209e7b8e8259c4010da0ef2f3804eb0b5b5a38d6699695dde5c324610ef03
|
Provenance
The following attestation bundles were made for wandb_agentstream-0.4.0-py3-none-any.whl:
Publisher:
release.yml on wandb/agentstream
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
wandb_agentstream-0.4.0-py3-none-any.whl -
Subject digest:
8d072a55b4f38e293da425cc9c3f719242b60ea4974e1a15f93b899e94e0fee8 - Sigstore transparency entry: 947208839
- Sigstore integration time:
-
Permalink:
wandb/agentstream@d59e53aa7022ec99ee9f43596d17b8db1ea6b12a -
Branch / Tag:
refs/tags/v0.4.0 - Owner: https://github.com/wandb
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@d59e53aa7022ec99ee9f43596d17b8db1ea6b12a -
Trigger Event:
push
-
Statement type: