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;
|
defaultThinkLevel?: ThinkLevel;
|
||||||
reasoningLevel?: ReasoningLevel;
|
reasoningLevel?: ReasoningLevel;
|
||||||
extraSystemPrompt?: string;
|
extraSystemPrompt?: string;
|
||||||
|
/** Event-sourced context from NATS (formatted text block). */
|
||||||
|
eventContextHint?: string;
|
||||||
ownerNumbers?: string[];
|
ownerNumbers?: string[];
|
||||||
reasoningTagHint?: boolean;
|
reasoningTagHint?: boolean;
|
||||||
toolNames?: string[];
|
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
|
// Skip silent replies for subagent/none modes
|
||||||
if (!isMinimal) {
|
if (!isMinimal) {
|
||||||
lines.push(
|
lines.push(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue