UserInputData
@Deprecated(forRemoval = true, since = "2.0.0") public class UserInputData
源码Source
io/agentscope/core/agent/user/UserInputData.java:28–68用户输入数据,驱动智能体的推理、工具调用与会话执行。位于 io.agentscope.core.agent.user 包。核心成员包括 getBlocksInput、getStructuredInput、UserInputData。
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.
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public UserInputData(List<ContentBlock> blocksInput, Map<String, Object> structuredInput) | 创建新的UserInputData 实例。 Creates a new UserInputData instance. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public List<ContentBlock> getBlocksInput() | 获取 `getBlocksInput`。 Gets the content blocks representing the user input. |
public Map<String, Object> getStructuredInput() | 获取结构化输入。 Gets the structured input data as a key-value map. |
构造器详情Constructor Detail
UserInputData
public UserInputData(List<ContentBlock> blocksInput, Map<String, Object> structuredInput)
创建新的UserInputData 实例。
Creates a new UserInputData instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
blocksInput | List<ContentBlock> | blocks 输入(类型 `List`)。List of content blocks representing the user input |
structuredInput | Map<String, Object> | 结构化输入(类型 `Map`)。Optional structured data map for typed input (may be null) |
源码Source
io/agentscope/core/agent/user/UserInputData.java:40–43方法详情Method Detail
getBlocksInput
public List<ContentBlock> getBlocksInput()
获取 getBlocksInput。
Gets the content blocks representing the user input.
List<ContentBlock>返回列出。List of content blocks (may be null or empty)
源码Source
io/agentscope/core/agent/user/UserInputData.java:53–55getStructuredInput
public Map<String, Object> getStructuredInput()
获取结构化输入。
Gets the structured input data as a key-value map.
Map<String, Object>返回映射。Map of structured input data, or null if not provided
源码Source
io/agentscope/core/agent/user/UserInputData.java:65–67