AS AgentScopeAPI 手册 / API Reference

Builder

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

构建器,用于构建并配置目标实例。位于 io.agentscope.core.studio.pojo 包。核心成员包括 requestId、runId、agentId、agentName、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 requestId(String requestId)
设置请求标识。
Performs the request id operation.
public Builder runId(String runId)
设置运行标识。
Runs the id.
public Builder agentId(String agentId)
设置智能体标识。
Performs the agent id operation.
public Builder agentName(String agentName)
设置智能体名称。
Performs the agent name operation.
public Builder structuredInput(Object structuredInput)
设置结构化输入。
Performs the structured input operation.
public RequestUserInputRequest build()
构建并返回最终实例。
Creates and returns an instance.

方法详情Method Detail

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/RequestUserInputRequest.java:106–109

runId

public Builder runId(String runId)

设置运行标识。

Runs the id.

参数Parameters
名称Name类型Type说明Description
runIdString运行标识(类型 `String`)。The run id.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/core/studio/pojo/RequestUserInputRequest.java:111–114

agentId

public Builder agentId(String agentId)

设置智能体标识。

Performs the agent id operation.

参数Parameters
名称Name类型Type说明Description
agentIdString智能体标识(类型 `String`)。The agent id.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/core/studio/pojo/RequestUserInputRequest.java:116–119

agentName

public Builder agentName(String agentName)

设置智能体名称。

Performs the agent name operation.

参数Parameters
名称Name类型Type说明Description
agentNameString智能体名称(类型 `String`)。The agent name.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/core/studio/pojo/RequestUserInputRequest.java:121–124

structuredInput

public Builder structuredInput(Object structuredInput)

设置结构化输入。

Performs the structured input operation.

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

build

public RequestUserInputRequest build()

构建并返回最终实例。

Creates and returns an instance.

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