InputContentUrlSource
public record InputContentUrlSource( @JsonProperty("value") String value, @JsonProperty("mimeType") String mimeType) implements InputContentSource
源码Source
io/agentscope/core/agui/model/InputContentUrlSource.java:34–56承载输入内容 URL 来源数据的记录类型。位于 io.agentscope.core.agui.model 包,实现 InputContentSource。核心成员包括 value、mimeType、InputContentUrlSource。
URL source in the AG-UI protocol.
JSON form: {"type": "url", "value": "https://...", "mimeType": "image/png"}
Maps to AgentScope's io.agentscope.core.message.URLSource during conversion:
value → url, mimeType → mimeType.
记录组件摘要Record Component Summary
| 组件Component | 类型Type | 说明Description |
|---|---|---|
value | String | 执行值相关操作。 the URL pointing to the media content |
mimeType | String | 执行MIME 类型相关操作。 the optional MIME type hint, may be null |
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public InputContentUrlSource(String value, String mimeType) | 初始化 `InputContentUrlSource` 实例。 Compact constructor ensuring `value` is non-null. |
public InputContentUrlSource(String value) | 初始化 `InputContentUrlSource` 实例。 Convenience constructor without MIME type. |
记录组件详情Record Component Detail
value
String value执行值相关操作。
the URL pointing to the media content
源码Source
io/agentscope/core/agui/model/InputContentUrlSource.java:34–56mimeType
String mimeType执行MIME 类型相关操作。
the optional MIME type hint, may be null
源码Source
io/agentscope/core/agui/model/InputContentUrlSource.java:34–56构造器详情Constructor Detail
InputContentUrlSource
public InputContentUrlSource(String value, String mimeType)
初始化 InputContentUrlSource 实例。
Compact constructor ensuring value is non-null.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | String | 值(类型 `String`)。the URL |
mimeType | String | 可选 MIME 类型。the optional MIME type |
源码Source
io/agentscope/core/agui/model/InputContentUrlSource.java:44–46InputContentUrlSource
public InputContentUrlSource(String value)
初始化 InputContentUrlSource 实例。
Convenience constructor without MIME type.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | String | 值(类型 `String`)。the URL |
源码Source
io/agentscope/core/agui/model/InputContentUrlSource.java:53–55