Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Feature flags

Cargo features decide which parts of troupekit get compiled: hosted models over HTTP, the SQLite store, document search, local models. You normally depend on troupekit and set features there, and it forwards them to the engine crates. The defaults give you agents, tools, hosted models and the SQLite store.

troupekit

FeatureTurns onDefault
kittroupekit-kit: macros, Agent, Graphyes
sqlitetroupekit-store-sqliteyes
reqwestthe reqwest HTTP transport in the agent, graph, host and kit cratesyes
knowledgesqlite, kit, troupekit-context and the kit's knowledgeno
sqlciphersqlite with SQLCipher and vendored OpenSSLno
sqlcipher-systemsqlite with SQLCipher and the system OpenSSLno
localkit, the kit's local and troupekit-localno
llamalocal and llama.cppno

Engine crates

CrateFeaturesDefault
troupekit-kitsqlite, knowledge, local, llama, reqwestsqlite, reqwest
troupekit-agentreqwestreqwest
troupekit-graphreqwestreqwest
troupekit-hostreqwestreqwest
troupekit-toolsreqwestreqwest
troupekit-providersreqwest, embeddingsreqwest
troupekit-store-sqlitesqlcipher, sqlcipher-systemnone
troupekit-localllama, llama-vulkan, embednone
troupekit-contextonnx, the fastembed ONNX embeddernone
troupekit-core, troupekit-index, troupekit-trace, troupekit-macros, troupekit-clinonenone

Binding crates

CrateFeaturesDefault
troupekit-ffi-coresqlite, reqwest, knowledgeall three
troupekit-ffisqlite, reqwest, knowledge, and bindgen for the uniffi-bindgen binarysqlite, reqwest, knowledge
troupekit-pysqlite, reqwest, knowledgeall three

Build notes

The default build needs a C compiler, for the bundled SQLite and for aws-lc-sys in the TLS stack. llama adds a C++ compiler and CMake; Install has the details. llama-vulkan builds llama.cpp with its Vulkan backend.

sqlite uses rusqlite with the bundled SQLite, which means you do not need SQLite installed on the system. troupekit with no default features and sqlite alone is the phone build that CI checks: it has no TLS stack.