AS AgentScopeAPI 手册 / API Reference

UserInputMetadata

@JsonInclude(JsonInclude.Include.NON_NULL) public class UserInputMetadata
源码Source io/agentscope/core/studio/pojo/UserInputMetadata.java:28–100

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

Metadata for user input messages from Studio.

This class provides type-safe metadata for messages received from AgentScope Studio, including the source, request ID, and optional structured input data.

嵌套类摘要Nested Class Summary

类Class类型Kind说明Description
Builder类class
构建器,用于构建并配置目标实例。
A class in io.agentscope.core.studio.pojo that evaluates agent behaviour and records tracing and telemetry data.

方法摘要Method Summary

方法Method说明Description
public String getSource()
获取来源的用户输入。
Gets the source of the user input.
public String getRequestId()
获取请求标识。
Gets the request ID that this input is responding to.
public Map<String, Object> getStructuredInput()
获取结构化输入。
Gets the structured input data if provided.
public static Builder builder()
static
返回构建器实例。
Returns the builder.

方法详情Method Detail

getSource

public String getSource()

获取来源的用户输入。

Gets the source of the user input.

返回Returns String
返回字符串结果。the source identifier (typically "studio")
源码Source io/agentscope/core/studio/pojo/UserInputMetadata.java:50–52

getRequestId

public String getRequestId()

获取请求标识。

Gets the request ID that this input is responding to.

返回Returns String
返回字符串结果。the request ID, or null if this is not a response to a specific request
源码Source io/agentscope/core/studio/pojo/UserInputMetadata.java:59–61

getStructuredInput

public Map<String, Object> getStructuredInput()

获取结构化输入。

Gets the structured input data if provided.

返回Returns Map<String, Object>
返回映射。map of structured input fields, or null if not provided
源码Source io/agentscope/core/studio/pojo/UserInputMetadata.java:68–70

builder

public static Builder builder()
static

返回构建器实例。

Returns the builder.

返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/core/studio/pojo/UserInputMetadata.java:72–74

嵌套类详情Nested Class Detail

Builder

public static class Builder

构建器,用于构建并配置目标实例。位于 io.agentscope.core.studio.pojo 包。核心成员包括 source、requestId、structuredInput、build。

A class in io.agentscope.core.studio.pojo that evaluates agent behaviour and records tracing and telemetry data. Declared in io.agentscope.core.studio.pojo.

基于官方固定版本源码静态生成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.