Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agent_stage-0.1.0.tar.gz (16.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agent_stage-0.1.0-py3-none-any.whl (18.9 kB view details)

Uploaded Python 3

File details

Details for the file agent_stage-0.1.0.tar.gz.

File metadata

  • Download URL: agent_stage-0.1.0.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

Hashes for agent_stage-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7fc4dfb3bf3b8921719be7ef22ae01f9b2f361ac1021c9392c19017f8da81cd0
MD5 bfa240aec6b0d4ce3700f312d91a2958
BLAKE2b-256 4a0e84aaa9d217dc8c4ff7f97b46c4f31b0165240714b4d732e948120e2e391c

See more details on using hashes here.

File details

Details for the file agent_stage-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: agent_stage-0.1.0-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

Hashes for agent_stage-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9a1e667ab3300568e517b3cb7401ac7571f803e76a9b08e6483ec8f49e28eaca
MD5 15e60575b8f15ac821a438817e6ad14a
BLAKE2b-256 56bae652876ea9c74d868e8753a6e3e025f2eda2166983ce7c552489ae7e6dd8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page