Dump the effective context

String prompt = ctx.getEffectivePrompt();
log.debug("prompt sent to model:\n{}", prompt);
Advertisement

Log retrieval results

Every vector-store lookup should log the query, top-K IDs, scores. Sorting through logs post-incident is faster with this data.

Advertisement

Memory inspection tool

Expose an internal endpoint that, given a user_id, dumps their full memory: profile, recent sessions, retrievable facts. Read-only, auth-gated, invaluable for support.