Function: runSimulation()
runSimulation(
leader,keyPersonnel,opts?):Promise<{aborted:boolean;agentReactions:object[];agentTrajectories: {[k:string]:object; };citationCatalog:CitationCatalogEntry[];commanderDecisions:object[];cost: {cacheStats?:CacheStats;forgeStats?:ForgeStats;llmCalls:number;providerErrors?:ProviderErrorStats;schemaRetries?:Record<string, {attempts:number;calls:number;fallbacks:number; }>;totalCostUSD:number;totalTokens:number; };directorEvents:object[];finalState:SimulationState;fingerprint: {[key:string]:string; };forgeAttempts:CapturedForge&object[];forgedToolbox:ForgedToolboxEntry[];leader: {archetype:string;colony:string;hexaco:HexacoProfile;hexacoBaseline: {agreeableness:number;conscientiousness:number;emotionality:number;extraversion:number;honestyHumility:number;openness:number; };hexacoHistory:HexacoSnapshot[];name:string; };outcomeClassifications:object[];providerError: {actionUrl:string|undefined;kind:ProviderErrorKind;message:string;provider:string|undefined; } |null;simulation:string;toolRegistries:Record<string,string[]>;totalCitations:number;totalToolsForged:number;turnArtifacts:TurnArtifact[]; }>
Defined in: apps/paracosm/src/runtime/orchestrator.ts:384
Paracosm Runtime — orchestration layer
Run simulations with AI agents, crisis directors, and department analysis.
Parameters
leader
keyPersonnel
opts?
RunOptions = {}
Returns
Promise<{ aborted: boolean; agentReactions: object[]; agentTrajectories: {[k: string]: object; }; citationCatalog: CitationCatalogEntry[]; commanderDecisions: object[]; cost: { cacheStats?: CacheStats; forgeStats?: ForgeStats; llmCalls: number; providerErrors?: ProviderErrorStats; schemaRetries?: Record<string, { attempts: number; calls: number; fallbacks: number; }>; totalCostUSD: number; totalTokens: number; }; directorEvents: object[]; finalState: SimulationState; fingerprint: {[key: string]: string; }; forgeAttempts: CapturedForge & object[]; forgedToolbox: ForgedToolboxEntry[]; leader: { archetype: string; colony: string; hexaco: HexacoProfile; hexacoBaseline: { agreeableness: number; conscientiousness: number; emotionality: number; extraversion: number; honestyHumility: number; openness: number; }; hexacoHistory: HexacoSnapshot[]; name: string; }; outcomeClassifications: object[]; providerError: { actionUrl: string | undefined; kind: ProviderErrorKind; message: string; provider: string | undefined; } | null; simulation: string; toolRegistries: Record<string, string[]>; totalCitations: number; totalToolsForged: number; turnArtifacts: TurnArtifact[]; }>