AS AgentScopeAPI 手册 / API Reference

UserInputData

public static class UserInputData
源码Source io/agentscope/core/studio/StudioWebSocketClient.java:365–397

用户输入数据,对智能体行为进行评测、追踪与可观测性分析。位于 io.agentscope.core.studio 包。核心成员包括 getBlocksInput、getStructuredInput、UserInputData。

Data structure representing user input from Studio.

This contains both content blocks (text, images, etc.) and optional structured data validated against a schema.

构造器摘要Constructor Summary

构造器Constructor说明Description
public UserInputData(List<ContentBlock> blocksInput, Map<String, Object> structuredInput)
创建用户输入数据。
Creates user input data.

方法摘要Method Summary

方法Method说明Description
public List<ContentBlock> getBlocksInput()
获取 `getBlocksInput`。
Gets the content blocks provided by the user.
public Map<String, Object> getStructuredInput()
获取结构化输入数据。
Gets the structured input data.

构造器详情Constructor Detail

UserInputData

public UserInputData(List<ContentBlock> blocksInput, Map<String, Object> structuredInput)

创建用户输入数据。

Creates user input data.

参数Parameters
名称Name类型Type说明Description
blocksInputList<ContentBlock>blocks 输入(类型 `List`)。List of content blocks provided by the user
structuredInputMap<String, Object>结构化输入(类型 `Map`)。Optional structured data (e.g., form fields)
源码Source io/agentscope/core/studio/StudioWebSocketClient.java:375–378

方法详情Method Detail

getBlocksInput

public List<ContentBlock> getBlocksInput()

获取 getBlocksInput。

Gets the content blocks provided by the user.

返回Returns List<ContentBlock>
返回列出。List of content blocks
源码Source io/agentscope/core/studio/StudioWebSocketClient.java:385–387

getStructuredInput

public Map<String, Object> getStructuredInput()

获取结构化输入数据。

Gets the structured input data.

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