interface IGMI { gmiId: string; creationTimestamp: Date; initialize(persona,
config): Promise<void>; getPersona(): IPersonaDefinition; getCurrentPrimaryPersonaId(): string; getGMIId(): string; getCurrentState(): GMIPrimeState; processTurnStream(turnInput): AsyncGenerator<GMIOutputChunk, GMIOutput, undefined>; handleToolResult(toolCallId,
toolName,
resultPayload,
userId,
userApiKeys?): Promise<GMIOutput>; handleToolResults?(toolResults,
userId,
userApiKeys?): Promise<GMIOutput>; hydrateConversationHistory?(conversationHistory): void; hydrateTurnContext?(context): void; getReasoningTrace(): Readonly<ReasoningTrace>; getWorkingMemorySnapshot(): Promise<Record<string, any>>; getCognitiveMemoryManager(): undefined | ICognitiveMemoryManager; _triggerAndProcessSelfReflection(): Promise<void>; onMemoryLifecycleEvent(event): Promise<LifecycleActionResponse>; analyzeAndReportMemoryHealth(): Promise<undefined | { overallStatus: "DEGRADED" | "ERROR" | "OPERATIONAL" | "LIMITED"; workingMemoryStats?: { itemCount: number; [
key:
string]
: any; }; ragSystemStats?: { isHealthy: boolean; details?: any; }; lifecycleManagerStats?: { isHealthy: boolean; details?: any; }; issues?: { severity: "critical" | "warning" | "info"; description: string; component: string; details?: any; }[]; }>; getOverallHealth(): Promise<GMIHealthReport>; shutdown(): Promise<void>; } Methods
initialize
- initialize(persona, config): Promise<void>
Returns Promise<void>
getCurrentPrimaryPersonaId
- getCurrentPrimaryPersonaId(): string
Returns string
getGMIId
- getGMIId(): string
Returns string
handleToolResult
- handleToolResult(toolCallId, toolName, resultPayload, userId, userApiKeys?): Promise<GMIOutput>
Parameters
- toolCallId: string
- toolName: string
- resultPayload: ToolResultPayload
- userId: string
Optional userApiKeys: Record<string, string>
Optional handleToolResults
- handleToolResults(toolResults, userId, userApiKeys?): Promise<GMIOutput>
Parameters
- toolResults: ToolCallResult[]
- userId: string
Optional userApiKeys: Record<string, string>
Optional hydrateConversationHistory
- hydrateConversationHistory(conversationHistory): void
Parameters
- conversationHistory: ConversationMessage[]
Returns void
Optional hydrateTurnContext
- hydrateTurnContext(context): void
Parameters
- context: {
sessionId?: string;
conversationId?: string;
organizationId?: string;
}Optional sessionId?: string
Optional conversationId?: string
Optional organizationId?: string
Returns void
getWorkingMemorySnapshot
- getWorkingMemorySnapshot(): Promise<Record<string, any>>
Returns Promise<Record<string, any>>
getCognitiveMemoryManager
_triggerAndProcessSelfReflection
- _triggerAndProcessSelfReflection(): Promise<void>
Returns Promise<void>
analyzeAndReportMemoryHealth
- analyzeAndReportMemoryHealth(): Promise<undefined | {
overallStatus: "DEGRADED" | "ERROR" | "OPERATIONAL" | "LIMITED";
workingMemoryStats?: {
itemCount: number;
[key: string]: any;
};
ragSystemStats?: {
isHealthy: boolean;
details?: any;
};
lifecycleManagerStats?: {
isHealthy: boolean;
details?: any;
};
issues?: {
severity: "critical" | "warning" | "info";
description: string;
component: string;
details?: any;
}[];
}> Returns Promise<undefined | {
overallStatus: "DEGRADED" | "ERROR" | "OPERATIONAL" | "LIMITED";
workingMemoryStats?: {
itemCount: number;
[key: string]: any;
};
ragSystemStats?: {
isHealthy: boolean;
details?: any;
};
lifecycleManagerStats?: {
isHealthy: boolean;
details?: any;
};
issues?: {
severity: "critical" | "warning" | "info";
description: string;
component: string;
details?: any;
}[];
}>
shutdown
- shutdown(): Promise<void>
Returns Promise<void>
Properties
Readonly gmiId
gmiId: string
Readonly creationTimestamp
creationTimestamp: Date
Interface
IGMI
Description
Defines the contract for a Generalized Mind Instance (GMI).