import { JSONSchema } from "effect";
export const DOC_PROMPT_PREFIX = "\u6211\u6B63\u5728\u914D\u7F6E\u4E00\u4E2A\u7BA1\u7406\u754C\u9762\u7684\u7EC4\u4EF6\uFF0C\u4EE5\u4E0B\u662F\u8BE5\u914D\u7F6E\u7684 JSON Schema\u3002\u8BF7\u6839\u636E\u6211\u7684\u540E\u7EED\u63CF\u8FF0\u5E2E\u6211\u751F\u6210\u4E00\u4EFD\u7B26\u5408\u8BE5 Schema \u7684 JSON \u914D\u7F6E\uFF0C\u53EA\u8F93\u51FA JSON\uFF0C\u4E0D\u8981\u989D\u5916\u7684\u89E3\u91CA\u3002";
export function schemaToJsonMarkdown(schema) {
  const json = JSONSchema.make(schema);
  return `\`\`\`json
${JSON.stringify(json)}
\`\`\``;
}
export function buildLlmUrl(provider, prompt) {
  const q = encodeURIComponent(prompt);
  return provider === "claude" ? `https://claude.ai/new?q=${q}` : `https://chatgpt.com/?q=${q}`;
}
