Q24: knowledge enters the run: search and record tools, relevant entries in prompts

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ZacharyZhang-NYandClaude Opus 5.5 committed 2026-10-08 05:20:03 -04:00
1 parent 0fea8a9159
commit 95e607bea7
12 files changed
+236 -31

No files matched your search

+2 -2
View File
@@ -1,5 +1,5 @@
import { attachmentNote } from "./agent-attachment-tools";
import { optionalString } from "./agent-tool-args";
import { optionalLimit, optionalString } from "./agent-tool-args";
import type { AgentToolContext, AgentToolDeps } from "./agent-tools";
import type { JsonRecord } from "./provider-http";
@@ -25,7 +25,7 @@ export function readMessagesTool(deps: AgentToolDeps, ctx: AgentToolContext, arg
const filter: MessageFilter = {
before: beforeCursor(deps, ctx.orgId, optionalString(args.before)),
query: optionalString(args.query),
limit: Math.min(Math.max(Number(args.limit) || 10, 1), 30),
limit: optionalLimit(args.limit, "limit", 10, 30),
};
if (withTeammate) {
const counterpart = deps.db.prepare(`