Skip to content

[Bug] 工具返回多模态时Formatter不符合预期 #1153

@wangyangvip12345-prog

Description

@wangyangvip12345-prog

调用工具我想返回图片的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没有作用

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions