Class ThoughtRuntime

Orchestrates execution of ThoughtModules and ThoughtGraphs. Provides the main runtime environment for the ThoughtSystem.

Constructors

Methods

  • Get runtime statistics

    Returns {
        runtimeId: string;
        memoryScopes: string[];
        traceCount: number;
        totalExecutions: number;
    }

    • runtimeId: string
    • memoryScopes: string[]
    • traceCount: number
    • totalExecutions: number
  • Export runtime state for debugging

    Returns {
        runtimeId: string;
        memory: Record<string, Record<string, any>>;
        trace: ExecutionTrace[];
        stats: {
            runtimeId: string;
            memoryScopes: string[];
            traceCount: number;
            totalExecutions: number;
        };
    }

    • runtimeId: string
    • memory: Record<string, Record<string, any>>
    • trace: ExecutionTrace[]
    • stats: {
          runtimeId: string;
          memoryScopes: string[];
          traceCount: number;
          totalExecutions: number;
      }
      • runtimeId: string
      • memoryScopes: string[]
      • traceCount: number
      • totalExecutions: number