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.7.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.7.0-py3-none-any.whl (68.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: agentmesh_context-3.7.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.7.0.tar.gz
Algorithm Hash digest
SHA256 1fc2c49d9eecdded6b77eb494357ba88a3b66b507290c836916a71f8d187704c
MD5 14a979eadbab1240cf8a0906291e45d9
BLAKE2b-256 09a43d7abb97497c6ba6320c19baa278f2c58c5052a4c342dd69d821fc8bbc93

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for agentmesh_context-3.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f2c90d60051c32a317e4bbd3eb52c315e8b0cc75d4ca3d497c1e1ac4adacf5f4
MD5 61d5e04dd0b1f2b3d434329d65adb513
BLAKE2b-256 4650f9963dfbd9d37bd30446e6efd46895579f971c37cd1195459cdac4c61fa3

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