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

+6
View File
@@ -11,6 +11,7 @@ import { bindSkillSlugs, grantSkillTool, listSkillsTool } from "./agent-skill-to
import { createDocumentTool, writeDeliverableTool } from "./agent-deliverable-tools";
import { companyStatusTool, GOAL_TOOLS, updateGoalTool } from "./agent-goal-tools";
import { ATTACHMENT_TOOLS, readAttachmentTool } from "./agent-attachment-tools";
import { KNOWLEDGE_TOOLS, recordKnowledgeTool, searchKnowledgeTool } from "./agent-knowledge-tools";
import { sendMessageTool } from "./agent-send-message";
import { withSavepoint } from "../database/connection";
import { optionalString, optionalStringArray, requireString } from "./agent-tool-args";
@@ -229,6 +230,7 @@ export const AGENT_TOOLS: ToolDefinition[] = [
},
...GOAL_TOOLS,
...ATTACHMENT_TOOLS,
...KNOWLEDGE_TOOLS,
];
export function dispatchAgentTool(
@@ -259,6 +261,10 @@ export function dispatchAgentTool(
return grantConnectorTool(deps, ctx, call.arguments, "grant");
case "revoke_connector":
return grantConnectorTool(deps, ctx, call.arguments, "revoke");
case "search_knowledge":
return searchKnowledgeTool(deps, ctx, call.arguments);
case "record_knowledge":
return recordKnowledgeTool(deps, ctx, call.arguments);
case "read_attachment":
return readAttachmentTool(deps, ctx, call.arguments);
case "company_status":