Expand description
Synaptic — A Rust agent framework with LangChain-compatible architecture.
This crate re-exports all Synaptic sub-crates for convenient single-import usage. Enable features to control which modules are available.
§Feature Flags
| Feature | Description |
|---|---|
default | runnables, prompts, parsers, tools, callbacks |
model-utils | ProviderBackend, ScriptedChatModel, wrappers (Retry, RateLimit, etc.) |
openai | OpenAI ChatModel + Embeddings |
anthropic | Anthropic ChatModel |
gemini | Gemini ChatModel |
ollama | Ollama ChatModel + Embeddings |
models | All providers: openai + anthropic + gemini + ollama + bedrock + cohere |
agent | Agent capabilities (graph, memory, middleware, store, etc.) — no provider included |
rag | RAG pipeline (embeddings, retrieval, loaders, etc.) — no provider included |
agent-openai | agent + openai provider |
agent-anthropic | agent + anthropic provider |
rag-openai | rag + openai provider |
deep | agent + deep agent harness (no implicit provider) |
deep-config | deep + config + openai (config-builder requires openai) |
full | All features enabled |
§Quick Start
ⓘ
use synaptic::core::{ChatModel, Message, ChatRequest, ToolChoice};
use synaptic::openai::OpenAiChatModel;
use synaptic::runnables::{Runnable, RunnableLambda, RunnableAssign, RunnablePick};Re-exports§
pub use synaptic_prompts as prompts;pub use synaptic_parsers as parsers;pub use synaptic_tools as tools;pub use synaptic_callbacks as callbacks;