Skip to main content
TealState governs agent context — the working memory that AI agents use to maintain conversation state, retrieved documents, and tool outputs. It enforces size limits, tracks provenance metadata for every context entry, and governs mutations to prevent context poisoning.
TealState addresses OWASP ASI-05 (Improper Output Handling) and ASI-08 (Excessive Agency) — the risks that agent context grows unbounded, contains unverified information, or is manipulated to influence future decisions.

Installation


Quick Start


Class Signature


Configuration


Context Size Governance

Enforces hard limits on context size to prevent token overflow and cost explosion:

Eviction Strategies


Provenance Metadata

Every context entry carries provenance metadata tracking its origin and trust level:

Querying Provenance


Context Budget


Context Audit


Integration with TealEngine