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.38

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.38
File Size Uploaded Provenance Actions
assistant_stream-0.0.38.tar.gz 214.6 kB With provenance Details for assistant_stream-0.0.38.tar.gz

Built distribution (wheel)

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

Total release size: 271.0 kB

Release files / assistant_stream-0.0.38.tar.gz

Download URL assistant_stream-0.0.38.tar.gz
Size 214.6 kB
Tags Source
SHA-256 checksum
How to use checksums
12af18cbdbda2702ea847b10e209d9f9a98673f5dc984cebc9d7d323962cf05f
BLAKE2b-256 checksum
How to use checksums
4652a57dcf1797045fd3db19f8cb75a42799cd7e629c9e93af0ee7aef418cdef
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 13, 2026.

Transparency log

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

Download URL assistant_stream-0.0.38-py3-none-any.whl
Size 56.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
58393b1d1c7cdcc4debdadfbf65cf5d7200bc8e52f1f29835277fcc4613a52b4
BLAKE2b-256 checksum
How to use checksums
69ccdf0088c9c5a189fbb117d3c7e6f94325072e28d7868dbad8b58e4d190a2c
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 13, 2026.

Transparency log

Security for assistant-stream 0.0.38

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.38.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 13, 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.38 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