InputContentDataSource
public record InputContentDataSource( @JsonProperty("value") String value, @JsonProperty("mimeType") String mimeType) implements InputContentSource
源码Source
io/agentscope/core/agui/model/InputContentDataSource.java:34–48承载输入内容数据来源数据的记录类型。位于 io.agentscope.core.agui.model 包,实现 InputContentSource。核心成员包括 value、mimeType、InputContentDataSource。
Inline data source in the AG-UI protocol.
JSON form: {"type": "data", "value": "<base64>", "mimeType": "image/png"}
Maps to AgentScope's io.agentscope.core.message.Base64Source during conversion:
value → data, mimeType → mediaType.
记录组件摘要Record Component Summary
| 组件Component | 类型Type | 说明Description |
|---|---|---|
value | String | Base64 编码的数据内容。 the Base64-encoded data content |
mimeType | String | 执行MIME 类型相关操作。 the MIME type (e.g. "image/png") |
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public InputContentDataSource(String value, String mimeType) | 初始化 `InputContentDataSource` 实例。 Compact constructor ensuring required fields are non-null. |
记录组件详情Record Component Detail
value
String valueBase64 编码的数据内容。
the Base64-encoded data content
源码Source
io/agentscope/core/agui/model/InputContentDataSource.java:34–48mimeType
String mimeType执行MIME 类型相关操作。
the MIME type (e.g. "image/png")
源码Source
io/agentscope/core/agui/model/InputContentDataSource.java:34–48构造器详情Constructor Detail
InputContentDataSource
public InputContentDataSource(String value, String mimeType)
初始化 InputContentDataSource 实例。
Compact constructor ensuring required fields are non-null.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | String | 数据内容。the data content |
mimeType | String | MIME 类型。the MIME type |
源码Source
io/agentscope/core/agui/model/InputContentDataSource.java:44–47