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.4.0.tar.gz (86.8 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.4.0-py3-none-any.whl (68.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for agentmesh_context-3.4.0.tar.gz
Algorithm Hash digest
SHA256 4a19eae23c063c4c5b2ea0ff25e428d1b3486366880415add3c7d09fe422d892
MD5 41f157d077e3b8d14dd8e99cd27935af
BLAKE2b-256 b85ade215e3bb398ed88d69940bafc418e47b40617e9395cbbd8eed7dc0bbc9d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for agentmesh_context-3.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 845c21b329afb0da8a59c3f51a66cf151a0dea9332a6af4437feecfa9deeb517
MD5 eff6e3c6af2ca4e89f533d3ffce9fab4
BLAKE2b-256 de25e55d16c4e31b20f90d5ceb09879f9f1568203b7ca09d7e49052abadda89e

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