Catalog PyPI
Back to packageRELEASE DETAILS

0.1.1

PyPI

agent-stage

Harness-independent stage director contracts for public agent work streams.

Published15 Jun 2026
Direct dependencies4
Transitive dependenciesNot calculated

README

Version 0.1.1 documentation

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.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 4

Native requirements
4 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
pytest
Environment
{
  "extras": "",
  "marker": "extra == \"dev\"",
  "requires_python": ">=3.11",
  "evaluation": "NOT_EVALUATED"
}
pytest>=8; extra == "dev"runtime
pytest-asyncio
Environment
{
  "extras": "",
  "marker": "extra == \"dev\"",
  "requires_python": ">=3.11",
  "evaluation": "NOT_EVALUATED"
}
pytest-asyncio>=0.23; extra == "dev"runtime
ruff
Environment
{
  "extras": "",
  "marker": "extra == \"dev\"",
  "requires_python": ">=3.11",
  "evaluation": "NOT_EVALUATED"
}
ruff>=0.8; extra == "dev"runtime
pyright
Environment
{
  "extras": "",
  "marker": "extra == \"dev\"",
  "requires_python": ">=3.11",
  "evaluation": "NOT_EVALUATED"
}
pyright>=1.1; extra == "dev"runtime

Distribution files

2 collected
agent_stage-0.1.1-py3-none-any.whl

bdist_wheel · 18.46 KB · Python py3

Source file
agent_stage-0.1.1.tar.gz

sdist · 16.29 KB · Python source

Source file

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 23:29 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:97067e7fa9ac69ddded72e8ddbdd346cade905c8d91b0e1f69ae083c6fe649ca

Other collected versions

View all collected versions →