AS AgentScopeAPI 手册 / API Reference

Builder

public static class Builder
源码Source io/agentscope/runtime/sandbox/client/agentrun/AgentRunClientStarter.java:129–206

构建器,用于构建并配置目标实例。位于 io.agentscope.runtime.sandbox.client.agentrun 包。核心成员包括 agentRunAccessKeyId、agentRunAccessKeySecret、agentRunAccountId、agentRunRegionId、agentRunCpu、agentRunMemory。

A class in io.agentscope.runtime.sandbox.client.agentrun that deploys, schedules and serves agents. Declared in io.agentscope.runtime.sandbox.client.agentrun.

方法摘要Method Summary

方法Method说明Description
public Builder agentRunAccessKeyId(String agentRunAccessKeyId)
设置智能体运行访问键标识。
Performs the agent run access key id operation.
public Builder agentRunAccessKeySecret(String agentRunAccessKeySecret)
设置智能体运行访问键密钥。
Performs the agent run access key secret operation.
public Builder agentRunAccountId(String agentRunAccountId)
设置该配置项。
Performs the agent run account id operation.
public Builder agentRunRegionId(String agentRunRegionId)
设置智能体运行区域标识。
Performs the agent run region id operation.
public Builder agentRunCpu(float agentRunCpu)
设置该配置项。
Performs the agent run cpu operation.
public Builder agentRunMemory(int agentRunMemory)
设置智能体运行记忆。
Performs the agent run memory operation.
public Builder agentRunVpcId(String agentRunVpcId)
设置该配置项。
Performs the agent run vpc id operation.
public Builder agentRunVswitchIds(List<String> agentRunVswitchIds)
设置该配置项。
Performs the agent run vswitch ids operation.
public Builder agentRunSecurityGroupId(String agentRunSecurityGroupId)
设置该配置项。
Performs the agent run security group id operation.
public Builder agentRunPrefix(String agentRunPrefix)
设置该配置项。
Performs the agent run prefix operation.
public Builder agentrunLogProject(String agentrunLogProject)
设置该配置项。
Performs the agentrun log project operation.
public Builder agentrunLogStore(String agentrunLogStore)
设置该配置项。
Performs the agentrun log store operation.
public AgentRunClientStarter build()
构建并返回最终实例。
Creates and returns an instance.

方法详情Method Detail

agentRunAccessKeyId

public Builder agentRunAccessKeyId(String agentRunAccessKeyId)

设置智能体运行访问键标识。

Performs the agent run access key id operation.

参数Parameters
名称Name类型Type说明Description
agentRunAccessKeyIdString智能体运行访问键标识(类型 `String`)。The agent run access key id.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/runtime/sandbox/client/agentrun/AgentRunClientStarter.java:143–146

agentRunAccessKeySecret

public Builder agentRunAccessKeySecret(String agentRunAccessKeySecret)

设置智能体运行访问键密钥。

Performs the agent run access key secret operation.

参数Parameters
名称Name类型Type说明Description
agentRunAccessKeySecretString智能体运行访问键密钥(类型 `String`)。The agent run access key secret.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/runtime/sandbox/client/agentrun/AgentRunClientStarter.java:148–151

agentRunAccountId

public Builder agentRunAccountId(String agentRunAccountId)

设置该配置项。

Performs the agent run account id operation.

参数Parameters
名称Name类型Type说明Description
agentRunAccountIdString智能体运行 Account 标识(类型 `String`)。The agent run account id.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/runtime/sandbox/client/agentrun/AgentRunClientStarter.java:153–156

agentRunRegionId

public Builder agentRunRegionId(String agentRunRegionId)

设置智能体运行区域标识。

Performs the agent run region id operation.

参数Parameters
名称Name类型Type说明Description
agentRunRegionIdString智能体运行区域标识(类型 `String`)。The agent run region id.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/runtime/sandbox/client/agentrun/AgentRunClientStarter.java:158–161

agentRunCpu

public Builder agentRunCpu(float agentRunCpu)

设置该配置项。

Performs the agent run cpu operation.

参数Parameters
名称Name类型Type说明Description
agentRunCpufloat智能体运行 Cpu(类型 `float`)。The agent run cpu.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/runtime/sandbox/client/agentrun/AgentRunClientStarter.java:163–166

agentRunMemory

public Builder agentRunMemory(int agentRunMemory)

设置智能体运行记忆。

Performs the agent run memory operation.

参数Parameters
名称Name类型Type说明Description
agentRunMemoryint智能体运行记忆(类型 `int`)。The agent run memory.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/runtime/sandbox/client/agentrun/AgentRunClientStarter.java:168–171

agentRunVpcId

public Builder agentRunVpcId(String agentRunVpcId)

设置该配置项。

Performs the agent run vpc id operation.

参数Parameters
名称Name类型Type说明Description
agentRunVpcIdString智能体运行 Vpc 标识(类型 `String`)。The agent run vpc id.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/runtime/sandbox/client/agentrun/AgentRunClientStarter.java:173–176

agentRunVswitchIds

public Builder agentRunVswitchIds(List<String> agentRunVswitchIds)

设置该配置项。

Performs the agent run vswitch ids operation.

参数Parameters
名称Name类型Type说明Description
agentRunVswitchIdsList<String>智能体运行 Vswitch Ids(类型 `List`)。The agent run vswitch ids.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/runtime/sandbox/client/agentrun/AgentRunClientStarter.java:178–181

agentRunSecurityGroupId

public Builder agentRunSecurityGroupId(String agentRunSecurityGroupId)

设置该配置项。

Performs the agent run security group id operation.

参数Parameters
名称Name类型Type说明Description
agentRunSecurityGroupIdString智能体运行 Security 组标识(类型 `String`)。The agent run security group id.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/runtime/sandbox/client/agentrun/AgentRunClientStarter.java:183–186

agentRunPrefix

public Builder agentRunPrefix(String agentRunPrefix)

设置该配置项。

Performs the agent run prefix operation.

参数Parameters
名称Name类型Type说明Description
agentRunPrefixString智能体运行 Prefix(类型 `String`)。The agent run prefix.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/runtime/sandbox/client/agentrun/AgentRunClientStarter.java:188–191

agentrunLogProject

public Builder agentrunLogProject(String agentrunLogProject)

设置该配置项。

Performs the agentrun log project operation.

参数Parameters
名称Name类型Type说明Description
agentrunLogProjectStringagentrun 日志 Project(类型 `String`)。The agentrun log project.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/runtime/sandbox/client/agentrun/AgentRunClientStarter.java:193–196

agentrunLogStore

public Builder agentrunLogStore(String agentrunLogStore)

设置该配置项。

Performs the agentrun log store operation.

参数Parameters
名称Name类型Type说明Description
agentrunLogStoreStringagentrun 日志存储(类型 `String`)。The agentrun log store.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/runtime/sandbox/client/agentrun/AgentRunClientStarter.java:198–201

build

public AgentRunClientStarter build()

构建并返回最终实例。

Creates and returns an instance.

返回Returns AgentRunClientStarter
返回AgentRunClientStarter。Returns agent run client starter.
源码Source io/agentscope/runtime/sandbox/client/agentrun/AgentRunClientStarter.java:203–205
基于官方固定版本源码静态生成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.