调用工具我想返回图片的url,给大模型,这个怎么实现呢。 return new ToolResultBlock( null, "read_workspace_image", List.of( TextBlock.builder().text("Workspace image loaded.").build(), ImageBlock.builder() .source(URLSource.builder().url(uploadedFile.url()).build()) .build() ), null ); 以上代码返回ToolResultBlock没有作用
Activity
wangyangvip12345-prog commentedon Apr 7, 2026
dashscope发现有问题。openai正常,应该是bug,请官方修复一下针对于自家产品的sdk
LearningGp commentedon Apr 8, 2026
我看了下这部分处理OpenAIChatFormatter和DashScopeChatFormatter这部分的处理缺失不一致,需要对齐,不过我测试了下,效果上是都可以的,咱们这边使用的是什么模型,是自己部署的还是哪一家服务商提供的
[-]如何实现调用工具返回多模态[/-][+][Bug] 工具返回多模态时Formatter不符合预期[/+]wangyangvip12345-prog commentedon Apr 9, 2026
qwen3.6-plus
zhsnddn commentedon Apr 13, 2026
问题解决了吗?请分配给我 @LearningGp
fix(core): preserve multimodal content parts in DashScope tool result…
fix(core): preserve multimodal content parts in DashScope tool result…
fix(core): preserve multimodal content parts in DashScope tool result…