feat(file-check): 更新文件检核工具 API Key 配置及相关文档
This commit is contained in:
1 parent
634dee4b81
commit
55cf7ff734
74 files changed
+1525
-1182
No files matched your search
@@ -1,5 +1,11 @@
|
||||
/**
|
||||
* 出货聊天:库存上传后发给 Dify 的提示语、附件类型分类(纯函数)。
|
||||
* features/chat/shipping/shippingUploadPrompt.ts
|
||||
* 用途:库存上传后发给 Dify 的提示语构建与附件类型分类。
|
||||
* 依赖:无;useChatShippingUploadHandler 在上传成功后调用。
|
||||
* 逻辑:按 checkpoint 生成不同 follow-up 提示;classifyShippingUploadFile 区分库存/通知附件。
|
||||
*/
|
||||
/**
|
||||
* 根据上传 API 响应 checkpoint 生成发给 Agent 的 follow-up 提示语。
|
||||
*/
|
||||
export function buildShippingInventoryUploadPrompt(
|
||||
result: Record<string, unknown> | null | undefined,
|
||||
@@ -23,6 +29,9 @@ export function buildShippingInventoryUploadPrompt(
|
||||
return `${prefix}。请继续处理库存导入,并告诉我下一步。`;
|
||||
}
|
||||
|
||||
/**
|
||||
* 按扩展名判断附件是库存 Excel 还是发货通知文件。
|
||||
*/
|
||||
export function classifyShippingUploadFile(
|
||||
file: File,
|
||||
extractExt: (name: string) => string,
|
||||
|
||||
Reference in new issue
Block a user