Skip to main content

assistant-stream

Durable Pydantic AI threads

assistant_stream.pydantic_ai.DurableAGUI serves a Pydantic AI agent over AG-UI with runs that keep going when the browser closes, and that a reopened thread rejoins.

pip install "assistant-stream[pydantic-ai]"   # Python 3.11+
from starlette.applications import Starlette
from assistant_stream.pydantic_ai import DurableAGUI, SqliteThreadStore

durable = DurableAGUI(
    agent,
    threads=SqliteThreadStore("threads.db"),
    owner=current_user,  # request -> user id, or None for 401
)
app = Starlette(routes=durable.routes())

Without owner, every client can read every thread, so leave it out only for local development.

Guide: https://www.assistant-ui.com/docs/runtimes/ag-ui/durable-threads

Metadata

Release files for assistant-stream 0.0.37

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for assistant-stream 0.0.37
File Size Uploaded Provenance Actions
assistant_stream-0.0.37.tar.gz 206.1 kB With provenance Details for assistant_stream-0.0.37.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for assistant-stream 0.0.37
File Interpreter ABI Platform Actions
assistant_stream-0.0.37-py3-none-any.whl Python 3 none any Details for assistant_stream-0.0.37-py3-none-any.whl

Total release size: 259.4 kB

Release files / assistant_stream-0.0.37.tar.gz

Download URL assistant_stream-0.0.37.tar.gz
Size 206.1 kB
Tags Source
SHA-256 checksum
How to use checksums
195775781f588b9e0210edf40e13aa1d232ae2d8fa6e5d1bf9b735cc4d9496ce
BLAKE2b-256 checksum
How to use checksums
8bcd046d5a5661781ef426d24e8e6fc94959622fe606cb89df0bd310430f05ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

Release files / assistant_stream-0.0.37-py3-none-any.whl

Download URL assistant_stream-0.0.37-py3-none-any.whl
Size 53.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fb3cae2c79ec40e0e5575c345dba3551b8c07f9ca1734927ce92b136a51ce1cf
BLAKE2b-256 checksum
How to use checksums
4e787739a8b6d4206b43e591626a7551d02f5a0410e2694fbfaf7c961997df88
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

Security for assistant-stream 0.0.37

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for assistant_stream-0.0.37.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.37 This release

2 release files Full provenance

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