AS AgentScopeAPI 手册 / API Reference

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
blocksInputList<ContentBlock>blocks 输入(类型 `List`)。List of content blocks representing the user input
structuredInputMap<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.

返回Returns List<ContentBlock>
返回列出。List of content blocks (may be null or empty)
源码Source io/agentscope/core/agent/user/UserInputData.java:53–55

getStructuredInput

public Map<String, Object> getStructuredInput()

获取结构化输入。

Gets the structured input data as a key-value map.

返回Returns Map<String, Object>
返回映射。Map of structured input data, or null if not provided
源码Source io/agentscope/core/agent/user/UserInputData.java:65–67
基于官方固定版本源码静态生成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.