flashmind-types
Shared traits and types for the Flashmind AI agent framework.
This is the foundation crate - all other flashmind crates depend on it.
Core Traits
LlmProvider- streaming completions interface (onlycomplete()is required)Tool- tool definition + execution for agentsMemoryProvider- vector memory store/search/forget
Key Types
AgentEvent- streaming events:TextDelta,ToolStart,ToolResult,Done, etc.Message/ContentPart- wire format for LLM messages (text, images, audio, video)Model/Provider- model identification (openrouter:anthropic/claude-sonnet-4)CompletionRequest/StreamEvent- LLM request and response typesToolRegistry- O(1) tool lookup with alias support
Usage
use ;
Most users should depend on the flashmind facade crate instead of this one directly.
License
MPL-2.0