Skip to main content

Module traits

Module traits 

Source
Expand description

Core traits for OpenRustClaw.

All major subsystems are defined as traits here, allowing for pluggable implementations and easy testing via mocks.

Structs§

ToolContext
Context provided to tools during execution.

Traits§

BatchProvider
For providers that support batch processing (e.g. Anthropic Batch API — 50% cheaper).
Channel
Trait for messaging platform integrations (WebChat, Telegram, Discord, etc.).
CoreMemoryStore
Trait for the core memory tier (tiny, always in prompt, ~500 tokens).
EmbeddingProvider
Trait for text embedding providers used by the memory/RAG system.
LlmProvider
Trait for LLM completion providers (Anthropic, OpenAI, OpenRouter, Ollama).
MemoryStore
Trait for the recall memory storage backend.
Tool
Trait for executable tools that the agent can invoke.