/** * before_prompt_build hook — per-turn dynamic context search. * * Queries engram with the current user prompt and injects the top matching * observations as prependContext so they appear immediately before the user's * message in each turn. */ import type { EngramRestClient } from '../client.js'; import type { PluginConfig } from '../config.js'; import type { BeforePromptBuildEvent, PromptBuildResult, PluginHookContext, PluginLogger } from '../types/openclaw.js'; /** * Handle the before_prompt_build hook. * * @param event - The before_prompt_build event from OpenClaw. * @param ctx - The hook context containing agent identity fields. * @param client - Shared engram REST client. * @param config - Resolved plugin config. * @returns Context to prepend, or void if nothing to inject. */ export declare function handleBeforePromptBuild(event: BeforePromptBuildEvent, ctx: PluginHookContext, client: EngramRestClient, config: PluginConfig, logger?: PluginLogger): Promise; //# sourceMappingURL=before-prompt-build.d.ts.map