Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

panel-agents

Panel components for building user interfaces for AI agents: a chat with tool-call cards, versioned artifacts and documents, human-in-the-loop approvals, actions on the page the user is looking at, traces and session replay.

Agent frameworks are connected through adapters that translate their output into a small set of normalized events, modelled on the AG-UI protocol. The components bind to a reactive RunState built from those events, so the same UI works live, against a recorded session, or with any framework that has an adapter. The pydantic-ai adapter ships with the package.

pip install "panel-agents[pydantic-ai]"

A chat for a pydantic-ai agent, docked beside an existing app, with inline approvals and a versioned artifact pane:

import panel as pn
from panel_agents import AgentDrawer, ApprovalPolicy
from panel_agents.adapters.pydantic_ai import AgentRunner

runner = AgentRunner(agent, deps=deps, approval_policy=ApprovalPolicy(["save_*", "delete_*"]))
drawer = AgentDrawer(runner, main=my_app)
pn.ui.Page(title="My app", header=[drawer.toggle], main=[drawer]).servable()

The drawer docks beside the sales report; its chat folds finished tool calls into one step and shows the run's cost and tokens under the answer.

Every session can be recorded and replayed with the same components:

from panel_agents import Recorder, load_state

with Recorder(runner.state, "runs/session.jsonl"):
    await runner.run("Summarize last month's sales")

replayed = load_state("runs/session.jsonl")

Guides

The documentation is at panel-extensions.github.io/panel-agents, with a getting-started tutorial, the guides below and the API reference.

Examples

  • examples/drawer_app.py: an agent docked beside a sales report, editing it as a document, filtering it through a front-end action and asking before it exports.
  • examples/sql_analyst/: a data-analysis agent over DuckDB, a replay viewer for its recordings and an MCP server for its tools.
  • examples/approval_demo.py, examples/artifacts_demo.py and examples/chat_replay.py: the approval, artifact and chat components on synthetic events, without a model.

Compatibility

panel-agents follows semantic versioning for the names listed in the API reference. Names and modules starting with an underscore are private and may change in any release, and recordings written by a release can be read by later releases of the same major version.

Metadata

Release files for panel-agents 0.1.0rc1

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

Source distribution (sdist)

Source distribution for panel-agents 0.1.0rc1
File Size Uploaded Provenance Actions
panel_agents-0.1.0rc1.tar.gz 1.1 MB With provenance Details for panel_agents-0.1.0rc1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for panel-agents 0.1.0rc1
File Interpreter ABI Platform Actions
panel_agents-0.1.0rc1-py3-none-any.whl Python 3 none any Details for panel_agents-0.1.0rc1-py3-none-any.whl

Total release size: 1.2 MB

Release files / panel_agents-0.1.0rc1.tar.gz

Download URL panel_agents-0.1.0rc1.tar.gz
Size 1.1 MB
Tags Source
SHA-256 checksum
How to use checksums
4e5f65eed6ac265dcf717631d912f6167aa255d5bda4fd0be33144cd747db148
BLAKE2b-256 checksum
How to use checksums
6103ac4043d69320de4a77188c3c0d680659d60afac646d00455aeff2d1a55dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 26, 2026.

Transparency log

Release files / panel_agents-0.1.0rc1-py3-none-any.whl

Download URL panel_agents-0.1.0rc1-py3-none-any.whl
Size 181.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f89b7a3f58d4f3cb200840fa5a0c77333a73874ecd3d0dd769704bc71afdc5b7
BLAKE2b-256 checksum
How to use checksums
a6fda76c87d99f8a6df3bd1c7eb816af8ec86b6f3d4204b4c3db52466a5544f2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 26, 2026.

Transparency log

Security for panel-agents 0.1.0rc1

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 panel_agents-0.1.0rc1.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 26, 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.

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