1.excel下面的sheet名称未被翻译
deploy-hxtesting / build-and-deploy (push) Successful in 1m15s

2.预览翻译文件时无法预览图片!
3.上传文件都要存到知识库中!可被问答
4.在SIP翻译专家agent下上传文件后默认给提示文案可直接发送
This commit is contained in:
runny committed 2026-12-01 06:26:12 +08:00
1 parent 8c3d0ee31c
commit 90b843b4e8
9 files changed
+308 -75

No files matched your search

+11 -2
View File
@@ -696,8 +696,17 @@ func (s *agentService) registerXlsxTranslateTool(
}
// store doubles as the dir ensurer; both are nil without a sandbox. The
// message service is the no-sandbox artifact sink: deliverables attach to
// the assistant message and surface as chat artifact cards.
toolRegistry.RegisterTool(tools.NewXlsxTranslateTool(store, store, s.temporaryDocuments, s.fileService, s.messageService, chatModel))
// the assistant message and surface as chat artifact cards. When the agent
// has explicit knowledge bases selected, uploads and translations are
// filed into the first one so they stay searchable by Q&A.
ingestKB := ""
if config != nil && len(config.SearchTargets) > 0 && config.SearchTargets[0] != nil {
ingestKB = config.SearchTargets[0].KnowledgeBaseID
}
toolRegistry.RegisterTool(tools.NewXlsxTranslateTool(
store, store, s.temporaryDocuments, s.fileService, s.messageService,
s.knowledgeService, ingestKB, chatModel,
))
if store != nil {
logger.Infof(ctx, "Registered xlsx_translate tool for session: %s (sandbox delivery)", sessionID)
} else {