agentfit 0.1.0

Fit messages to an LLM context window. Token-aware truncation with pluggable tokenizers and multiple strategies.
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
rust-version = "1.75"
name = "agentfit"
version = "0.1.0"
authors = ["MukundaKatta"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Fit messages to an LLM context window. Token-aware truncation with pluggable tokenizers and multiple strategies."
homepage = "https://github.com/MukundaKatta/agentfit-rs"
documentation = "https://docs.rs/agentfit"
readme = "README.md"
keywords = [
    "llm",
    "anthropic",
    "openai",
    "context-window",
    "tokens",
]
categories = [
    "text-processing",
    "api-bindings",
]
license = "MIT"
repository = "https://github.com/MukundaKatta/agentfit-rs"

[features]
default = []
tiktoken = ["dep:tiktoken-rs"]

[lib]
name = "agentfit"
path = "src/lib.rs"

[[test]]
name = "test_fitter"
path = "tests/test_fitter.rs"

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.tiktoken-rs]
version = "0.7"
optional = true

[dev-dependencies.serde_json]
version = "1"