fix: handle image value correctly for mcp BlobResourceContents (#2753)
This commit is contained in:
1 parent
6cbbffc5a9
commit
91ee0a870d
1 file changed
+1
-1
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user