Skip to main content

Documentation Index

Fetch the complete documentation index at: https://cognis.vasanth.xyz/llms.txt

Use this file to discover all available pages before exploring further.

The umbrella crate. Most apps depend on this and write use cognis::prelude::*;. It re-exports the four sibling capability crates and adds the agent layer (builder, multi-agent orchestration, memory, middleware, built-in tools, observers, eval).

Crate metadata

FieldValue
Latest version0.3
docs.rsdocs.rs/cognis
Repo pathcrates/cognis
Default featuresopenai, ollama

What’s exported

Re-exported fromPath
cognis-corecognis::cognis_core::* (the crate) plus flat top-level (e.g. cognis::Message, cognis::Runnable, cognis::RunnableConfig, cognis::Event, cognis::Observer).
cognis-graphcognis::cognis_graph::* plus cognis::Graph, cognis::node_fn, cognis::Goto, cognis::NodeOut, cognis::GraphState, cognis::Checkpointer, cognis::InMemoryCheckpointer, cognis::CompiledGraph.
cognis-llmcognis::cognis_llm::* plus cognis::Client, cognis::Tool, cognis::ToolDefinition, cognis::ToolInput, cognis::ToolOutput, cognis::ToolRegistry.
cognis-ragcognis::cognis_rag::* plus cognis::Document, cognis::Embeddings, cognis::InMemoryVectorStore, cognis::VectorStore, cognis::SearchResult, retrievers, transformers.

What lives in the umbrella itself

ModuleWhat
agentAgentBuilder, Agent, AgentResponse, AgentState, default_react_graph, lifecycle, plugins.
agent_busAgentBus, Subscription, SubscribeError.
agent_eventsAgentEvent, AgentEventBus, EventSubscription, DEFAULT_EVENTS_TOPIC.
backendBackend, InMemoryStorageBackend, LocalFsStorageBackend, SandboxedFsBackend, MemoryBackend.
evalEvalRunner, EvalCase, EvalRow, EvalReport, Evaluator trait, plus built-in ExactMatch, Contains, LlmJudge.
historyConversation persistence helpers.
middlewareThe full middleware catalog (see Middleware).
multi_agentMultiAgentOrchestrator, Sequential, Supervisor, ParallelVote, RoundRobin, HandoffStrategy.
observersTracingObserver — stdout-friendly observer for local debugging.
presetsOut-of-the-box agent recipes.
retrieversLLM-driven retrievers (multi-query expansion, contextual compression).
sessionSession, SessionStore, InMemorySessionStore.
skillsReusable agent skills.
telemetryLightweight metrics.
toolsBuilt-in tools — Calculator, file tools (FileReadTool/FileWriteTool/FileEditTool/FileListTool/FileGlobTool/FileGrepTool/FileExistsTool), JsonQueryTool, PythonReplTool, HumanTool, ShellTool, SubAgentTool, RetrieverTool. Plus ToolOrchestrator, ExecutionPlan, ToolStep, and the approval primitives (Approver, Decision, AllowList, AutoApprove, RejectAll, ApprovalGatedTool). HTTP / OpenAPI / web-search / Wikipedia tools (HttpRequest, OpenApiToolset, WebSearchTool, TavilyProvider*, WikipediaTool) are gated behind the tools-http feature.

prelude

use cognis::prelude::*; brings in:
  • The umbrella’s flat top-level re-exports.
  • Distance, Embeddings, InMemoryVectorStore, SearchResult, VectorStore.
  • async_trait::async_trait.
  • The RunnableExt trait so pipe, with_max_retries, with_timeout, etc. are in scope.
  • Common memory variants and their constructors.
If something feels like it should be importable, try cognis::prelude first.

Feature flags

FeaturePulls in
openaiOpenAI provider in cognis-llm, OpenAI embeddings in cognis-rag.
anthropicAnthropic provider.
googleGoogle provider + embeddings.
ollamaOllama provider + embeddings (default).
azureAzure OpenAI provider.
voyageVoyage embeddings.
all-providersAll of the above.
tools-httpHTTP tool primitives.
cache-sqliteSQLite-backed cache.
See Feature flags for the full table.

See also

cognis-core

Foundation crate.

cognis-llm

LLM clients & providers.

cognis-rag

RAG building blocks.

cognis-graph

Graph engine.

cognis-trace

Observability.

cognis-macros

Proc macros.