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:
cheatofrom
2026-06-10 01:41:37 +00:00
committed by GitHub
co-authored by autofix-ci[bot]
parent a823649934
commit 3fb1d3055e
2 changed files with 12 additions and 2 deletions
@@ -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),