Foundation API Reference
The foundation layer (mofa-foundation) provides concrete implementations and business logic.
Modules
llm
LLM client and provider implementations.
LLMClient— Unified LLM clientLLMProvider— Provider traitOpenAIProvider— OpenAI implementationAnthropicProvider— Anthropic implementation
react
ReAct agent pattern implementation.
ReActAgent— ReAct agentReActBuilder— Builder for ReAct agents
secretary
Secretary agent pattern for human-in-the-loop workflows.
SecretaryAgent— Secretary agentSecretaryConfig— Configuration
persistence
Persistence layer for state and session management.
PersistencePlugin— Persistence pluginPostgresStore— PostgreSQL backendSqliteStore— SQLite backend
coordination
Multi-agent coordination patterns.
Sequential— Sequential pipelineParallel— Parallel executionConsensus— Consensus patternDebate— Debate pattern
Feature Flags
| Flag | Description |
|---|---|
openai | OpenAI provider |
anthropic | Anthropic provider |
persistence | Persistence layer |
See Also
- LLM Providers Guide — LLM configuration
- Persistence Guide — Persistence setup