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 |
|---|---|---|
id | String | 标识(类型 `String`)。The id. |
Builder返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source
io/agentscope/core/studio/pojo/RegisterRunRequest.java:133–136project
public Builder project(String project)
设置该配置项。
Performs the project operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
project | String | project(类型 `String`)。The project. |
Builder返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source
io/agentscope/core/studio/pojo/RegisterRunRequest.java:138–141name
public Builder name(String name)
设置名称。
Performs the name operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
name | String | 名称(类型 `String`)。The name. |
Builder返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source
io/agentscope/core/studio/pojo/RegisterRunRequest.java:143–146timestamp
public Builder timestamp(String timestamp)
设置时间戳。
Performs the timestamp operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
timestamp | String | 时间戳(类型 `String`)。The timestamp. |
Builder返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source
io/agentscope/core/studio/pojo/RegisterRunRequest.java:148–151pid
public Builder pid(long pid)
设置该配置项。
Performs the pid operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
pid | long | pid(类型 `long`)。The pid. |
Builder返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source
io/agentscope/core/studio/pojo/RegisterRunRequest.java:153–156status
public Builder status(String status)
设置状态。
Performs the status operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
status | String | 状态(类型 `String`)。The status. |
Builder返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source
io/agentscope/core/studio/pojo/RegisterRunRequest.java:158–161runDir
public Builder runDir(String runDir)
设置运行目录。
Runs the dir.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
runDir | String | 运行目录(类型 `String`)。The run dir. |
Builder返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source
io/agentscope/core/studio/pojo/RegisterRunRequest.java:163–166build
public RegisterRunRequest build()
构建并返回最终实例。
Creates and returns an instance.
RegisterRunRequest返回RegisterRunRequest。Returns register run request.
源码Source
io/agentscope/core/studio/pojo/RegisterRunRequest.java:168–170