/** * Grounding and semantic-review metadata for goals: the grounding-state * vocabulary and the pure builders that shape a goal's grounding / * semantic-review metadata records. * * Consumed by `goal-semantic-evaluator.ts` (which fills these from an LLM pass); * PA re-exports this module for back-compat, so keep the exported shapes stable. */ import { type LifeOpsGoalReviewState } from "@elizaos/contracts"; export declare const GOAL_GROUNDING_STATES: readonly ["grounded", "partial", "ungrounded"]; export type GoalGroundingState = (typeof GOAL_GROUNDING_STATES)[number]; export interface GoalGroundingMetadata { version: 1; groundingState: GoalGroundingState; summary: string | null; targetDomain: string | null; groundedAt: string | null; confidence: number | null; missingCriticalFields: string[]; evidenceSignals: string[]; reviewCadenceKind: string | null; } export interface GoalSemanticSuggestionMetadata { kind: string | null; title: string; detail: string; } export interface GoalSemanticReviewMetadata { reviewedAt: string; reviewState: LifeOpsGoalReviewState; progressScore: number | null; confidence: number | null; explanation: string; evidenceSummary: string | null; missingEvidence: string[]; suggestions: GoalSemanticSuggestionMetadata[]; } export declare function buildGoalGroundingMetadata(args: { confidence?: number | null; evidenceSignals?: string[]; groundedAt?: string | null; groundingState: GoalGroundingState; missingCriticalFields?: string[]; reviewCadenceKind?: string | null; summary?: string | null; targetDomain?: string | null; }): GoalGroundingMetadata; export declare function mergeGoalGroundingMetadata(metadata: Record, grounding: GoalGroundingMetadata): Record; export declare function readGoalGroundingMetadata(value: unknown): GoalGroundingMetadata | null; export declare function buildGoalSemanticReviewMetadata(args: { confidence?: number | null; evidenceSummary?: string | null; explanation: string; missingEvidence?: string[]; progressScore?: number | null; reviewState: LifeOpsGoalReviewState; reviewedAt: string; suggestions?: GoalSemanticSuggestionMetadata[]; }): GoalSemanticReviewMetadata; export declare function mergeGoalSemanticReviewMetadata(metadata: Record, review: GoalSemanticReviewMetadata): Record; export declare function readGoalSemanticReviewMetadata(value: unknown): GoalSemanticReviewMetadata | null; //# sourceMappingURL=goal-grounding.d.ts.map