OSP logo
os://protocol

Context

Context domain — read-only facades for the agent loop's gather phase. System state, embeddings, and key-value storage for AI agents.

Overview

The Context domain provides application-specific context and data management for agents. It enables agents to access, store, and retrieve information needed for intelligent decision-making and task execution.

Context is one of the three pillars of the agent loop: Gather Context → Take Actions → Verify Results.

Context APIs

APIDescription
System ContextRead-only composition of all system Context interfaces
EmbeddingsVector embeddings for semantic search
Key-Value StoreKey-value persistence for the agent loop

Role in Agent Loop

Context provides the foundation for informed agent behavior:

Usage

Context is accessed through the context protocol domain. SystemContext composes all system read interfaces into a single entry point. Embeddings and KV are agent-facing read/write interfaces for semantic search and key-value persistence respectively.

Integration

Context integrates with:

  • System: Accesses system-level information
  • Actions: Provides context for action execution
  • Checks: Context informs quality verification
  • Workflows: Workflows access context during execution