From a7829ca9b3b7c791d3734cc2349d16a194ecdb6d Mon Sep 17 00:00:00 2001 From: CREDO23 Date: Mon, 22 Jun 2026 22:33:21 +0200 Subject: [PATCH] feat: map deliverable tools to artifact kinds --- .../features/chat-artifacts/model/artifact.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/surfsense_web/features/chat-artifacts/model/artifact.ts b/surfsense_web/features/chat-artifacts/model/artifact.ts index e63f84a85..d8fff5bdd 100644 --- a/surfsense_web/features/chat-artifacts/model/artifact.ts +++ b/surfsense_web/features/chat-artifacts/model/artifact.ts @@ -21,3 +21,13 @@ export interface ChatArtifact { /** Report panel content type — "typst" for resumes, "markdown" otherwise. */ contentType: "markdown" | "typst"; } + +/** Maps deliverable tool names to artifact kinds. Mirrors the body tools in assistant-message. */ +export const ARTIFACT_TOOL_KINDS: Record = { + generate_report: "report", + generate_resume: "resume", + generate_podcast: "podcast", + generate_video_presentation: "video", + generate_image: "image", + display_image: "image", +};