Skip to content

armgit / mem0

Public Imported from GitHub
0

The Memory Layer for AI Agents - Drop-in memory infrastructure for AI agents and apps. Context that persists. Built for production.

1.2 KB
Raw Blame
import { MemoryClient } from "./mem0";
import type * as MemoryTypes from "./mem0.types";

// Re-export all types from mem0.types
export type {
  AddMemoryOptions,
  SearchMemoryOptions,
  GetAllMemoryOptions,
  DeleteAllMemoryOptions,
  ProjectOptions,
  Memory,
  MemoryHistory,
  MemoryUpdateBody,
  ProjectResponse,
  PromptUpdatePayload,
  Webhook,
  WebhookCreatePayload,
  WebhookUpdatePayload,
  Messages,
  Message,
  AllUsers,
  User,
  FeedbackPayload,
  CreateMemoryExportPayload,
  GetMemoryExportPayload,
  ProfileEntityType,
  ProfileStatus,
  ProfileResponse,
  ProfileJobResponse,
  ProfileJobStatus,
  ProfileSettings,
  ProfileSettingsResponse,
  EntityProfileSettings,
} from "./mem0.types";

// Re-export enums as values (not type-only)
export { Feedback, WebhookEvent } from "./mem0.types";

// Export the main client
export { MemoryClient };
export default MemoryClient;

// Export structured exceptions
export {
  MemoryError,
  AuthenticationError,
  RateLimitError,
  ValidationError,
  MemoryNotFoundError,
  NetworkError,
  ConfigurationError,
  MemoryQuotaExceededError,
  createExceptionFromResponse,
} from "../common/exceptions";

export type { MemoryErrorOptions } from "../common/exceptions";