Require source grounding for project and lore answers

This commit is contained in:
Meta Vens 2026-04-24 14:40:45 +01:00
commit b4693f5609
6 changed files with 236 additions and 3 deletions

View file

@ -166,6 +166,12 @@ export interface InteractionMemoryProfile {
recentEvents: InteractionMemoryEvent[];
}
export interface SourceGroundingHint {
required: boolean;
reasons: string[];
matchedRepoNames: string[];
}
export interface ContextBundle {
prompt: string;
actor: Actor;
@ -173,6 +179,7 @@ export interface ContextBundle {
recentMessages: SourceMessage[];
retrieval: RetrievalResult[];
interactionMemory?: InteractionMemoryProfile;
sourceGrounding?: SourceGroundingHint;
stylePack?: StylePack;
createdAt: string;
}