类 UserInputData
java.lang.Object
io.agentscope.core.agent.user.UserInputData
已过时, 待删除: 此 API 元素将从以后的版本中删除。
Data class that holds user input information with dual representation.
Contains both content blocks (for message construction) and optional structured data
(for typed input validation). This dual nature allows flexible handling of simple text
input and complex structured forms within the same unified input system.
-
构造器概要
构造器构造器说明UserInputData(List<ContentBlock> blocksInput, Map<String, Object> structuredInput) 已过时, 待删除: 此 API 元素将从以后的版本中删除。Creates a new UserInputData instance. -
方法概要
修饰符和类型方法说明已过时, 待删除: 此 API 元素将从以后的版本中删除。Gets the content blocks representing the user input.已过时, 待删除: 此 API 元素将从以后的版本中删除。Gets the structured input data as a key-value map.
-
构造器详细资料
-
UserInputData
已过时, 待删除: 此 API 元素将从以后的版本中删除。Creates a new UserInputData instance.- 参数:
blocksInput- List of content blocks representing the user inputstructuredInput- Optional structured data map for typed input (may be null)
-
-
方法详细资料
-
getBlocksInput
已过时, 待删除: 此 API 元素将从以后的版本中删除。Gets the content blocks representing the user input.Content blocks can include text, images, audio, or other multimodal content. This representation is suitable for constructing message objects.
- 返回:
- List of content blocks (may be null or empty)
-
getStructuredInput
已过时, 待删除: 此 API 元素将从以后的版本中删除。Gets the structured input data as a key-value map.This optional representation allows for typed input validation and complex form handling. For example, a form with name, age, and email fields can be represented as a map.
- 返回:
- Map of structured input data, or null if not provided
-