AS AgentScopeAPI 手册 / API Reference

Builder

public static class Builder
源码Source io/agentscope/core/studio/pojo/RegisterRunRequest.java:124–171

构建器,用于构建并配置目标实例。位于 io.agentscope.core.studio.pojo 包。核心成员包括 id、project、name、timestamp、pid、status。

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 id(String id)
设置标识。
Performs the id operation.
public Builder project(String project)
设置该配置项。
Performs the project operation.
public Builder name(String name)
设置名称。
Performs the name operation.
public Builder timestamp(String timestamp)
设置时间戳。
Performs the timestamp operation.
public Builder pid(long pid)
设置该配置项。
Performs the pid operation.
public Builder status(String status)
设置状态。
Performs the status operation.
public Builder runDir(String runDir)
设置运行目录。
Runs the dir.
public RegisterRunRequest build()
构建并返回最终实例。
Creates and returns an instance.

方法详情Method Detail

id

public Builder id(String id)

设置标识。

Performs the id operation.

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

project

public Builder project(String project)

设置该配置项。

Performs the project operation.

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

name

public Builder name(String name)

设置名称。

Performs the name operation.

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

timestamp

public Builder timestamp(String timestamp)

设置时间戳。

Performs the timestamp operation.

参数Parameters
名称Name类型Type说明Description
timestampString时间戳(类型 `String`)。The timestamp.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/core/studio/pojo/RegisterRunRequest.java:148–151

pid

public Builder pid(long pid)

设置该配置项。

Performs the pid operation.

参数Parameters
名称Name类型Type说明Description
pidlongpid(类型 `long`)。The pid.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/core/studio/pojo/RegisterRunRequest.java:153–156

status

public Builder status(String status)

设置状态。

Performs the status operation.

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

runDir

public Builder runDir(String runDir)

设置运行目录。

Runs the dir.

参数Parameters
名称Name类型Type说明Description
runDirString运行目录(类型 `String`)。The run dir.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/core/studio/pojo/RegisterRunRequest.java:163–166

build

public RegisterRunRequest build()

构建并返回最终实例。

Creates and returns an instance.

返回Returns RegisterRunRequest
返回RegisterRunRequest。Returns register run request.
源码Source io/agentscope/core/studio/pojo/RegisterRunRequest.java:168–170
基于官方固定版本源码静态生成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.