AS AgentScopeAPI 手册 / API Reference

Builder

public static class Builder
源码Source io/agentscope/core/studio/pojo/UserInputMetadata.java:76–99

构建器,用于构建并配置目标实例。位于 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.

方法摘要Method Summary

方法Method说明Description
public Builder source(String source)
设置来源。
Performs the source operation.
public Builder requestId(String requestId)
设置请求标识。
Performs the request id operation.
public Builder structuredInput(Map<String, Object> structuredInput)
设置结构化输入。
Performs the structured input operation.
public UserInputMetadata build()
构建并返回最终实例。
Creates and returns an instance.

方法详情Method Detail

source

public Builder source(String source)

设置来源。

Performs the source operation.

参数Parameters
名称Name类型Type说明Description
sourceString来源(类型 `String`)。The source.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/core/studio/pojo/UserInputMetadata.java:81–84

requestId

public Builder requestId(String requestId)

设置请求标识。

Performs the request id operation.

参数Parameters
名称Name类型Type说明Description
requestIdString请求标识(类型 `String`)。The request id.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/core/studio/pojo/UserInputMetadata.java:86–89

structuredInput

public Builder structuredInput(Map<String, Object> structuredInput)

设置结构化输入。

Performs the structured input operation.

参数Parameters
名称Name类型Type说明Description
structuredInputMap<String, Object>结构化输入(类型 `Map`)。The structured input.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/core/studio/pojo/UserInputMetadata.java:91–94

build

public UserInputMetadata build()

构建并返回最终实例。

Creates and returns an instance.

返回Returns UserInputMetadata
返回UserInputMetadata。Returns user input metadata.
源码Source io/agentscope/core/studio/pojo/UserInputMetadata.java:96–98
基于官方固定版本源码静态生成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.