upload_knowledge_file
Submit metadata for an already uploaded OSS file to add it to a knowledge base, then poll the original operation ID until SUCCESS or FAIL.
Instructions
保留已上传对象和同一笔记 client_request_id;保存遇限流不要重新上传。凭据敏感,不得放进聊天、日志或命令参数。任务 pending/processing 不等于完成。恢复仅查询原 operation_id,不能自动申请新 key。OSS 直传成功后将原文件加入知识库,只接收元数据,不接收本地路径或 base64。返回处理中的资源不等于入库成功;用 list_topic_directories 查询同一 ID,直到 SUCCESS 或 FAIL。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| md5 | Yes | ||
| url | Yes | ||
| topic_id | Yes | ||
| file_name | Yes | ||
| file_type | Yes | ||
| directory_id | Yes |