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", +};