mirror of
https://github.com/langgenius/dify.git
synced 2026-09-24 23:22:26 +08:00
fix: agent mode missing file cards for BINARY_LINK and FILE type tool outputs (#36746)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
autofix-ci[bot]
parent
a823649934
commit
3fb1d3055e
@@ -172,6 +172,8 @@ class ToolFileMessageTransformer:
|
||||
meta=tool_file_meta,
|
||||
)
|
||||
else:
|
||||
if file.mime_type and "mime_type" not in tool_file_meta:
|
||||
tool_file_meta["mime_type"] = file.mime_type
|
||||
yield ToolInvokeMessage(
|
||||
type=ToolInvokeMessage.MessageType.LINK,
|
||||
message=ToolInvokeMessage.TextMessage(text=url),
|
||||
|
||||
Reference in New Issue
Block a user