Mnemo Core Components

Mnemo (Application Class)

Acts as the entrypoint and lifecycle manager.

Responsibilities:

  • Initialize application context

  • Manage configurations

  • Provide registry and execution layer

  • Register and execute workflows

Context (Global State Manager)

Maintains application-wide state and services.

Key Elements:

  • Configuration

  • Server Registry

  • Executor

  • Human Input Handler

  • Signal Notification

  • Logging

Connection Management

MCPConnectionManager

  • Handles lifecycle of MCP server connections

  • Manages transport mechanisms (STDIO, SSE, WebSocket)

ServerConnection

  • Maintains transport context and ClientSession

  • Manages initialization and shutdown

Agent System

Agent Architecture

The Agent class extends MCPAggregator and represents an entity with a purpose and access to MCP servers:

Capabilities:

  • Named instructions and tool aggregation

  • Python function exposure as tools

  • Human-in-the-loop support

  • AugmentedLLM integration for response generation

Augmented LLM System

Enables advanced LLM integration with tool calling.

Features:

  • Unified interface (generate, generate_str, generate_structured)

  • Memory for conversation history

  • Multi-provider support (OpenAI, Anthropic, Azure, Bedrock)

Last updated