Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Foundation API Reference

The foundation layer (mofa-foundation) provides concrete implementations and business logic.

Modules

llm

LLM client and provider implementations.

  • LLMClient — Unified LLM client
  • LLMProvider — Provider trait
  • OpenAIProvider — OpenAI implementation
  • AnthropicProvider — Anthropic implementation

react

ReAct agent pattern implementation.

  • ReActAgent — ReAct agent
  • ReActBuilder — Builder for ReAct agents

secretary

Secretary agent pattern for human-in-the-loop workflows.

  • SecretaryAgent — Secretary agent
  • SecretaryConfig — Configuration

persistence

Persistence layer for state and session management.

  • PersistencePlugin — Persistence plugin
  • PostgresStore — PostgreSQL backend
  • SqliteStore — SQLite backend

coordination

Multi-agent coordination patterns.

  • Sequential — Sequential pipeline
  • Parallel — Parallel execution
  • Consensus — Consensus pattern
  • Debate — Debate pattern

Feature Flags

FlagDescription
openaiOpenAI provider
anthropicAnthropic provider
persistencePersistence layer

See Also