Skip to main content

AlphaAvatar Context Plugin

The default Context manager is created by Host against a partial AvatarRuntime and then owned by FoundationRuntime. Engine lends Memory/Persona read sources; it does not assemble native Loop prompts or own an SDK ChatContext.

Interface

Use runtime.foundation.context through the public ContextManager contract:

  • accept_turn(snapshot) accepts a committed Turn and supplies its current input seed.
  • prepare(ContextPrepareRequest) captures the native history, perception and query prefix.
  • build(prefix, continuation=...) appends execution continuation without refreshing State.

There is no parallel query-manager API. ContextContribution and ContextPrepareRequest live in the public alphaavatar.agents.avatar.context.schemas namespace.

Preparation waits for the explicitly identified committed Turn, captures State, source properties, time and modality information once, and renders the prefix off the event loop. Pending preparations are bounded and remain owned until settled, even when their requesting execution is cancelled.

State and static loop_budget use the synthetic alphaavatar_runtime_context function-call/output pair. Its identity, content and position remain stable inside one query. No middle system/developer update or per-model-step budget rewrite is introduced. Stable prefixes permit reuse but do not guarantee provider cache hits.

Native history

The manager retains bounded history by context and Turn and independently consumes canonical model records from Output. User input comes from committed Turns; Engine does not reconstruct assistant/tool records from a LoopResult or inject Memory writes.

Incomplete tool-call/output pairs are excluded from the next model input. Retiring Run results remain associated with their original identity and do not resurrect evicted Turns. Context acknowledgement is independent of Memory acknowledgement and is not a database-persistence guarantee.

context:
  plugin: default
  init_config:
    behavior_rules: "Follow the application's execution and authorization policies."
    max_pending_preparations: 16
    history_max_turns: 32
    history_max_items: 4096
    history_max_bytes: 8388608

The history byte limit bounds serialized retained content, not total process memory or shared media caches. Eviction respects whole-Turn history ownership.

StateRuntime.global_behavior_rules may originate from client metadata. It is captured as reference/preferences, not promoted into application system instructions. Binding Memory/Persona sources does not transfer their ownership.

Lifecycle

Host constructs Context, Voice and the required Loop before binding Foundation. It initializes Loop only after binding. Context creation must not request an unavailable Foundation service. Loop is not optional and loop: null is invalid.

Ingress and execution producers stop before record consumers are drained. Foundation closes Loop, Context/preparation work, and shared Provider/Voice before Output and Inference are released. Context does not close borrowed Memory or Persona components.

The SDK generation bridge is removed. Native history and ContextManager are the main path, not a fallback beside SDK ChatContext. Temporal alignment and visual rendering remain separate components; there is no process-global query cache or per-step mutation of State.

Metadata

Release files for alpha-avatar-plugins-context 0.6.8

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

Source distribution (sdist)

Source distribution for alpha-avatar-plugins-context 0.6.8
File Size Uploaded Provenance
alpha_avatar_plugins_context-0.6.8.tar.gz 26.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for alpha-avatar-plugins-context 0.6.8
File Interpreter ABI Platform
alpha_avatar_plugins_context-0.6.8-py3-none-any.whl Python 3 none any Details

Total release size: 65.6 kB

Release files / alpha_avatar_plugins_context-0.6.8.tar.gz

Download URL alpha_avatar_plugins_context-0.6.8.tar.gz
Size 26.4 kB
Tags Source
SHA-256 checksum
How to use checksums
06754e4f6cdb1aeab5c42845946c8bb3c156c8f80a581081afb2c8cadb64d4f9
BLAKE2b-256 checksum
How to use checksums
14c81c9657752c4fbe0ad6cab36a8adadf5d4908c979708dd82e10974bf0d828
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / alpha_avatar_plugins_context-0.6.8-py3-none-any.whl

Download URL alpha_avatar_plugins_context-0.6.8-py3-none-any.whl
Size 39.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4cc2cc31efe1e0c6ec6e7b4d368b0d36784485ebf75396d3c47a8904ed29966f
BLAKE2b-256 checksum
How to use checksums
3b394fd20a06c2110b4b7b74a036a23cfc8a70f0737f431a4c73be58079de283
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for alpha-avatar-plugins-context 0.6.8

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.6.8 This release

2 release files No 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