Harness-independent stage director contracts for public agent work streams.
Project description
Agent Stage
Agent Stage is a small, harness-independent presentation runtime for turning
public agent work events into stage frames. It owns the public event model,
redaction rules, stage-director call engine, token catalog helpers, NDJSON
ingestion, and the generic stage_frame contract.
The package is designed to sit downstream of any agent harness. A harness emits
sanitized public TraceEvent objects; Agent Stage maps those public events into
signals and validates presentation frames. Hidden reasoning, provider payloads,
credentials, app databases, and private tool internals stay outside this layer.
Packages
- Python:
agent-stage - TypeScript:
agent-stage-core - License: Apache-2.0
Install
python -m pip install agent-stage
npm install agent-stage-core
The initial repository scaffold can also be used from source:
python -m pip install -e ".[dev]"
npm install
Python Example
from agent_stage import PublicTraceType, TraceEvent, build_stage_signal
event = TraceEvent(
type=PublicTraceType.TOOL_CALL,
summary="Looking up a nutrition fact",
payload={"args": {"query": "rice"}},
tool_name="nutrition_lookup",
)
signal = build_stage_signal(
type=event.type,
summary=event.summary,
payload=event.payload,
event_id=event.event_id,
created_at=event.created_at,
tool_name=event.tool_name,
)
TypeScript Example
import { decodeStageFrame } from "agent-stage-core";
The renderer example is pending asset-format decision.
Demo
examples/stage-demo is a no-key scripted demo. It uses public Agent Stage APIs
only and does not import any private app backend or reference harness.
python examples/stage-demo/run.py
python examples/stage-demo/server.py
Schema
The generic frame contract lives in:
- Python package data:
src/agent_stage/stage_frame_v1.json - Repository schema copy:
schema/stage_frame_v1.json
The contract is format-neutral. It carries an asset_call.renderer slot but
does not implement or require a concrete renderer.
Model Calls
Agent Stage tests do not make paid model calls. Live canaries are manual and belong to downstream apps when they change model-visible prompts, toolsets, or production director wiring.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 agent_stage-0.1.1.tar.gz.
File metadata
- Download URL: agent_stage-0.1.1.tar.gz
- Upload date:
- Size: 16.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
05b8acf58e241df7e67281bc53f8398d1c06e430be8f09ce08b4dfdba9f38e07
|
|
| MD5 |
a72b555784598be1dd11c423048a70a7
|
|
| BLAKE2b-256 |
b0c289dd657a413cc43e99a8781c76b1a655fdf15e615575cb060c2e0eaac8f0
|
File details
Details for the file agent_stage-0.1.1-py3-none-any.whl.
File metadata
- Download URL: agent_stage-0.1.1-py3-none-any.whl
- Upload date:
- Size: 18.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
212f747c2cddc7e35342483c2ad13b7ed2ee3968db8beeab5bcd748fc0e3fc5f
|
|
| MD5 |
7945eebb63daf6619a2b990ef1b8e6db
|
|
| BLAKE2b-256 |
42735f52c038dfe25985609ce1972659c5aa7e0044df244b5f3fcfedbd2eca44
|