TextInputContent
public record TextInputContent(@JsonProperty("text") String text) implements InputContent
源码Source
io/agentscope/core/agui/model/TextInputContent.java:32–42承载文本输入内容数据的记录类型。位于 io.agentscope.core.agui.model 包,实现 InputContent。核心成员包括 text、TextInputContent。
Text input content in the AG-UI protocol.
JSON form: {"type": "text", "text": "Hello"}
Maps to io.agentscope.core.message.TextBlock during conversion.
记录组件摘要Record Component Summary
| 组件Component | 类型Type | 说明Description |
|---|---|---|
text | String | 执行文本相关操作。 the text content (must not be null) |
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public TextInputContent(String text) | 初始化 `TextInputContent` 实例。 Compact constructor ensuring `text` is never null. |
记录组件详情Record Component Detail
text
String text执行文本相关操作。
the text content (must not be null)
源码Source
io/agentscope/core/agui/model/TextInputContent.java:32–42构造器详情Constructor Detail
TextInputContent
public TextInputContent(String text)
初始化 TextInputContent 实例。
Compact constructor ensuring text is never null.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
text | String | 文本内容。the text content |
源码Source
io/agentscope/core/agui/model/TextInputContent.java:39–41