Skip to main content

context-compressor

Context budget manager and conversation compressor for AI agents.

Usage

from context_compressor import ContextCompressor

async def mock_summarize(prompt):
    return "## Active Task\n...\n\n## Goal\n..."

compressor = ContextCompressor(
    context_length=8000,
    summarize_callback=mock_summarize
)

Metadata

Release files for kindred-context-compressor 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kindred-context-compressor 1.0.0
File Size Uploaded Provenance
kindred_context_compressor-1.0.0.tar.gz 20.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for kindred-context-compressor 1.0.0
File Interpreter ABI Platform
kindred_context_compressor-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 38.5 kB

Release files / kindred_context_compressor-1.0.0.tar.gz

Download URL kindred_context_compressor-1.0.0.tar.gz
Size 20.1 kB
Tags Source
SHA-256 checksum
How to use checksums
62269b9055954f6c784d285b131199813aef2ff33cf9dfac41fb760ff73490b0
BLAKE2b-256 checksum
How to use checksums
24260d6a3e679785ae42d60c0c4aa6ae7c3b5817ba7b51a416bc41d438e3e2f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.11

Release files / kindred_context_compressor-1.0.0-py3-none-any.whl

Download URL kindred_context_compressor-1.0.0-py3-none-any.whl
Size 18.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
490d0a281f253ed4cce65d6f35f09c45b110a06a08da486fadcd6977c1242c39
BLAKE2b-256 checksum
How to use checksums
14eb72f2f1c9ff11a6cf9b13243850f314856514f8b57acf75870a1deb9a1ccc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.11

Security for kindred-context-compressor 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page