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

Uploaded Python 3

File details

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

File metadata

  • Download URL: agentmesh_context-3.5.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.5.0.tar.gz
Algorithm Hash digest
SHA256 bd260c38fecb5a7b501ed2c7bf3921f4c885b22f798c2427aea326fcfe5ddc61
MD5 ea5d6806570d953b8d7e3cf2f7f694e4
BLAKE2b-256 0adc0d4d957967ae8803fe92ecee376c13ce1f20deb0d707d0b0f4fbb1abe705

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for agentmesh_context-3.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ca32346b590143afc1dba77078eb8a822736a8ff64f8476e9ce8c9e52bbcdea7
MD5 055011401f5be95d42392c5185887169
BLAKE2b-256 8823954cdaa19f1510a979855a88ee315daac9048e50a665a8e909747b1f94fb

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