Skip to content

TypeScript API

Alessio Rocchi edited this page Jan 27, 2026 · 1 revision

TypeScript API

Complete programmatic API reference.


Core Exports

import {
  // Configuration
  loadConfig,
  getConfig,
  saveConfig,
  validateConfig,

  // Agents
  spawnAgent,
  getAgent,
  listAgents,
  stopAgent,
  registerAgent,
  listAgentTypes,

  // Memory
  getMemoryManager,
  MemoryManager,

  // Coordination
  TaskQueue,
  MessageBus,
  getMessageBus,
  HierarchicalCoordinator,

  // Workflows
  WorkflowRunner,
  getWorkflowRunner,
  runDocSync,

  // MCP
  startMCPServer,
  MCPServer,

  // Providers
  createProvider,
  AnthropicProvider,
  OpenAIProvider,
  OllamaProvider,

  // Plugins
  loadPlugin,
  listPlugins,
  getPlugin,

  // Hooks
  registerHook,
  executeHooks,

  // Types
  AgentDefinition,
  SpawnedAgent,
  MemoryEntry,
  Session,
  Task,
  AgentStackConfig
} from '@blackms/aistack';

Usage Examples

See Programmatic API Guide for detailed examples.


Related:

Clone this wiki locally