AS AgentScopeAPI 手册 / API Reference

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
textString
执行文本相关操作。
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
textString文本内容。the text content
源码Source io/agentscope/core/agui/model/TextInputContent.java:39–41
基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.