Skip to content

A modern and easy to use dashboard. 80+ integrations. 20K+ icons built in. Authentication out of the box. No YAML, drag and drop configuration.

437 B
Raw Blame
import { defaultDirectiveFormatter } from "@assistant-ui/react";

export const parseAssistantDirectives = (text: string) => defaultDirectiveFormatter.parse(text);

export const getAssistantDirectiveTranslationKey = (type: string) => {
  if (type === "tool" || type === "tools") return "tools" as const;
  if (type === "app" || type === "integration" || type === "board" || type === "widget") return type;
  return "context" as const;
};