Skip to main content

A pure, logic-only library for routing context, handling RAG fallacies, and managing context windows. Layer 1 Primitive - no agent dependencies.

Project description

Context-as-a-Service (CaaS) — Public Preview

Part of Agent OS - Kernel-level governance for AI agents

PyPI License: MIT

Context management for RAG systems.

CaaS provides stateless utilities for routing, prioritizing, and filtering context in retrieval-augmented generation (RAG) pipelines. It manages what information gets sent to the LLM, reducing token waste and improving response quality.

Installation

pip install agentmesh-context

Quick Start

from caas import DocumentStore, VirtualFileSystem

store = DocumentStore()
store.add_document({"content": "API auth uses JWT", "timestamp": "2025-01-15"})

vfs = VirtualFileSystem()
vfs.create_file("/project/main.py", "print('hello')", agent_id="agent-1")

Features

  • Document storage with time-based prioritization
  • Virtual File System for multi-agent collaboration
  • Context routing to appropriate model tiers
  • Stateless design with no framework dependencies

Contributing

See CONTRIBUTING.md for development setup and guidelines.

License

MIT License — see LICENSE for details.

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

agentmesh_context-3.6.0.tar.gz (86.7 kB view details)

Uploaded Source

Built Distribution

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

agentmesh_context-3.6.0-py3-none-any.whl (68.3 kB view details)

Uploaded Python 3

File details

Details for the file agentmesh_context-3.6.0.tar.gz.

File metadata

  • Download URL: agentmesh_context-3.6.0.tar.gz
  • Upload date:
  • Size: 86.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: RestSharp/106.13.0.0

File hashes

Hashes for agentmesh_context-3.6.0.tar.gz
Algorithm Hash digest
SHA256 83f881fed705fb940019d1cee54f59f2601161c845aebed267ec18d5205c7905
MD5 97e0ebab653539fa16d4cf18519bb833
BLAKE2b-256 ec6b5259bc1aee6df4e290c2a570277ae9c4df3eb3b3ecf614cafab5e1e6ef67

See more details on using hashes here.

File details

Details for the file agentmesh_context-3.6.0-py3-none-any.whl.

File metadata

File hashes

Hashes for agentmesh_context-3.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7cbd308df5b58c270ef82cd54d1dc8897e1b781290f513070da6bc4a65a8772c
MD5 545d109683688cda5fa55a069d932ea5
BLAKE2b-256 0d514b5ca212caa1b0752b8d6a0cdfd3fbb28ef812c40203d884d7e92c7ccb37

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