Skip to main content

Agentic Context Toolkit: context delta learning for adaptive LLM agents

Project description

CI Docs Publish Coverage

Agentic Context Engineering Toolkit

Research-oriented framework for Agentic Context Engineering. It captures, ranks, and reuses "context deltas" from LLM interactions so agents adapt without retraining, following the methodology described in Agentic Context Engineering Framework.

Features

  • LLM provider agnostic (OpenAI, Anthropic, LiteLLM, Ollama, custom wrappers)
  • Storage backend agnostic (memory, SQLite, Postgres/pgvector, extensible interfaces)
  • Token budget management, retrieval & ranking, reflection, and curation pipelines
  • Ready for Python 3.12 with strict typing, async workflows, and modern tooling

Getting Started

python -m venv .venv
source .venv/bin/activate  # On Windows: .venv\Scripts\activate
pip install -r requirements.txt

Project Layout

.
  acet/               # Library source (packages added per phase)
  benchmarks/         # Performance and benchmark suites
  docs/               # Documentation site sources
  examples/           # Usage examples and sample apps
  tests/              # Unit, integration, and benchmark tests

Development Workflow

  1. Create/activate the local virtual environment.
  2. Install dependencies with pip install -r requirements.txt.
  3. Run format and lint checks: black . and ruff check.
  4. Run type checks: mypy --strict ..
  5. Run tests: pytest --cov=acet.

Performance Snapshot

  • Delta retrieval (250 active deltas): ~2 ms mean latency (tests/benchmarks/test_delta_retrieval.py)
  • SQLite save/query (300 staged deltas): ~23 ms mean latency (tests/benchmarks/test_storage_throughput.py)
  • Curator dedup (300 proposed insights, 30% duplicates): ~140 ms mean latency (tests/benchmarks/test_curator_throughput.py)

All benchmarks are reproducible via the CLI harnesses under benchmarks/. For example:

python benchmarks/delta_retrieval.py --iterations 30 --plot benchmarks/artifacts/delta_latency.png
python benchmarks/storage_throughput.py --backend all --iterations 30 --plot benchmarks/artifacts/storage_latency.png
python benchmarks/curator_throughput.py --proposals 300 --duplicate-ratio 0.3 --iterations 20 --plot benchmarks/artifacts/curator_latency.png

Adjust the parameters or swap in your production embeddings/backends to profile your deployment.

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

acet-1.0.7.tar.gz (28.2 kB view details)

Uploaded Source

Built Distribution

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

acet-1.0.7-py3-none-any.whl (35.5 kB view details)

Uploaded Python 3

File details

Details for the file acet-1.0.7.tar.gz.

File metadata

  • Download URL: acet-1.0.7.tar.gz
  • Upload date:
  • Size: 28.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for acet-1.0.7.tar.gz
Algorithm Hash digest
SHA256 17f2e93850e35d8c45f4db33fa6ff205d8dd73231bfaf87c185e1d9e39b7dd94
MD5 d74acee650013f3271b73c8cf06cd770
BLAKE2b-256 c7d1e15073a7e7464d0bd67c4c077cfad327f9a250d94c1a8becee6022cf6996

See more details on using hashes here.

File details

Details for the file acet-1.0.7-py3-none-any.whl.

File metadata

  • Download URL: acet-1.0.7-py3-none-any.whl
  • Upload date:
  • Size: 35.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for acet-1.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 5c738812d142ff051d161f27831eaaa8d9fea1f93b86968709e19b0789aad7a0
MD5 0843a7ac92b3e6f164d8021f91df6a3f
BLAKE2b-256 45a79571e2e4b4c84b915450d540d7a1899ed39b445c9df2a8faeef5622f33ce

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