fix: handle image value correctly for mcp BlobResourceContents (#2753)

This commit is contained in:
Soulter
2025-09-16 08:22:18 +08:00
committed by GitHub
parent 6cbbffc5a9
commit 91ee0a870d
@@ -258,7 +258,7 @@ class ToolLoopAgentRunner(BaseAgentRunner[TContext]):
)
yield MessageChain(
type="tool_direct_result"
).base64_image(res.content[0].data)
).base64_image(resource.blob)
else:
tool_call_result_blocks.append(
ToolCallMessageSegment(