tpt-ai-agents

Rust

Rust workspace for building LLM-powered agents: unified streaming clients for OpenAI/Anthropic/Ollama, RAG pipeline (chunking, embedding, context management), vector store traits (Qdrant/Milvus/pgvector), tool-use macros, prompt templating, tokenization, agent memory, eval harness, and a mock server.

0 stars0 forks0 watchers10 open issuesApache License 2.0
ai-agentsanthropicembeddingsllmllm-toolsopenairagrusttokenizervector-database

Languages

Rust100.0%
README

tpt-ai-agents

CI codecov License: MIT OR Apache-2.0

Workspace of independent, composable Rust crates for LLM/agent infrastructure.

See GETTING_STARTED.md for a quickstart and docs/ARCHITECTURE.md for how the crates compose.

Crates

CrateVersionMaturityDescriptionTier
tpt-llm-client-corecrates.ioProductionUnified streaming HTTP/SSE client for OpenAI, Anthropic, Ollama with automatic retry/backoff0
tpt-vector-store-traitscrates.ioBetaStandardized async traits for Qdrant, Milvus, pgvector0
tpt-vector-store-qdrantcrates.ioBetaReal VectorStore adapter backed by Qdrant1
tpt-rag-pipelinecrates.ioBetaChunking, embedding batching, context-window management1
tpt-tool-use-macroscrates.ioProductionProc macros exposing Rust functions as LLM tools0
tpt-prompt-templatecrates.ioProductionSafe, typed templating for prompts0
tpt-onnx-runtime-utilscrates.ioBetaHigh-level wrappers for local ONNX inference0
tpt-tokenizers-fastcrates.ioProductionLightweight, no_std-compatible BPE/SentencePiece tokenization0
tpt-agent-memorycrates.ioProductionIn-memory and file-persistent graph memory with keyword and embedding-based semantic search for multi-turn state1
tpt-eval-harnesscrates.ioBetaTools for running LLM eval datasets deterministically1
tpt-ai-mock-servercrates.ioProductionMock server for testing LLM integrations0
tpt-vector-store-pgvectorcrates.ioBetaReal VectorStore adapter backed by pgvector (PostgreSQL)1
tpt-embeddings-clientcrates.ioBetaUnified async client for OpenAI, Cohere, and custom embedding APIs0
tpt-agent-graphcrates.ioBetaThin state-machine/DAG orchestration for LLM agent turns0

Maturity levels:

  • Production — full implementation, comprehensive tests, real-world usage expected
  • Beta — functional implementation, may have API adjustments before 1.0

Publish Order

Publish by tier, waiting for crates.io propagation between tiers:

Tier 0 (no internal deps): tpt-tokenizers-fast, tpt-llm-client-core, tpt-vector-store-traits, tpt-prompt-template, tpt-tool-use-macros, tpt-onnx-runtime-utils, tpt-ai-mock-server, tpt-embeddings-client, tpt-agent-graph

Tier 1 (depend on Tier 0): tpt-rag-pipeline, tpt-agent-memory, tpt-eval-harness, tpt-vector-store-qdrant, tpt-vector-store-pgvector

Verified via cargo publish --dry-run for every crate (2026-07-23): all of Tier 0 packages and dry-run-uploads cleanly on its own now that tpt-llm-client-core's only internal dependency (tpt-prompt-template, via the now-removed tool-use feature) is gone. Tier 1 crates correctly fail dry-run today since their Tier 0 dependencies aren't on crates.io yet — expected, not a bug.

MSRV

Rust 1.75 — enforced via rust-toolchain.toml and CI.

License

Dual-licensed under MIT and Apache-2.0.