feat(prompt): Add eventContextHint parameter for event-sourced memory
System prompt can now include event-based context from NATS JetStream. Next step: Auto-load context on session start.
This commit is contained in:
parent
37f34e0536
commit
aea4c823ed
1 changed files with 7 additions and 0 deletions
|
|
@ -166,6 +166,8 @@ export function buildAgentSystemPrompt(params: {
|
|||
defaultThinkLevel?: ThinkLevel;
|
||||
reasoningLevel?: ReasoningLevel;
|
||||
extraSystemPrompt?: string;
|
||||
/** Event-sourced context from NATS (formatted text block). */
|
||||
eventContextHint?: string;
|
||||
ownerNumbers?: string[];
|
||||
reasoningTagHint?: boolean;
|
||||
toolNames?: string[];
|
||||
|
|
@ -551,6 +553,11 @@ export function buildAgentSystemPrompt(params: {
|
|||
}
|
||||
}
|
||||
|
||||
// Event-sourced context (from NATS JetStream)
|
||||
if (params.eventContextHint) {
|
||||
lines.push("## Event-Sourced Memory", "", params.eventContextHint, "");
|
||||
}
|
||||
|
||||
// Skip silent replies for subagent/none modes
|
||||
if (!isMinimal) {
|
||||
lines.push(
|
||||
|
|
|
|||
Loading…
Reference in a new issue