AS AgentScopeAPI 手册 / API Reference

AgentConfigEntry

@JsonInclude(JsonInclude.Include.NON_EMPTY) @JsonIgnoreProperties(ignoreUnknown = true) public class AgentConfigEntry
源码Source io/agentscope/harness/coding/config/AgentConfigEntry.java:30–114

智能体配置条目,承载智能体的部署、调度与服务化运行。位于 io.agentscope.harness.coding.config 包。核心成员包括 getName、setName、getDescription、setDescription、getSysPrompt、setSysPrompt。

Per-agent section in agentscope.json under agents.<agentId>.

After the agent is built, HarnessAgent automatically loads additional workspace-scoped configuration (for example subagents/*.md) from the resolved #workspace directory.

方法摘要Method Summary

方法Method说明Description
public String getName()
获取名称。
Returns the name.
public void setName(String name)
设置名称。
Sets the name.
public String getDescription()
获取 `getDescription`。
Returns the description.
public void setDescription(String description)
设置 `setDescription`。
Sets the description.
public String getSysPrompt()
获取 `getSysPrompt`。
Returns the sys prompt.
public void setSysPrompt(String sysPrompt)
设置 `setSysPrompt`。
Sets the sys prompt.
public String getWorkspace()
获取工作区。
Returns the workspace.
public void setWorkspace(String workspace)
设置工作区。
Sets the workspace.
public Integer getMaxIters()
获取最大迭代次数。
Returns the max iters.
public void setMaxIters(Integer maxIters)
设置最大迭代次数。
Sets the max iters.
public String getEnvironmentMemory()
获取环境记忆。
Returns the environment memory.
public void setEnvironmentMemory(String environmentMemory)
设置环境记忆。
Sets the environment memory.
public SkillRepositoryConfigEntry getSkillRepository()
获取技能仓库。
Returns the skill repository.
public void setSkillRepository(SkillRepositoryConfigEntry skillRepository)
设置技能仓库。
Sets the skill repository.

方法详情Method Detail

getName

public String getName()

获取名称。

Returns the name.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/harness/coding/config/AgentConfigEntry.java:59–61

setName

public void setName(String name)

设置名称。

Sets the name.

参数Parameters
名称Name类型Type说明Description
nameString名称(类型 `String`)。The name.
源码Source io/agentscope/harness/coding/config/AgentConfigEntry.java:63–65

getDescription

public String getDescription()

获取 getDescription。

Returns the description.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/harness/coding/config/AgentConfigEntry.java:67–69

setDescription

public void setDescription(String description)

设置 setDescription。

Sets the description.

参数Parameters
名称Name类型Type说明Description
descriptionString描述(类型 `String`)。The description.
源码Source io/agentscope/harness/coding/config/AgentConfigEntry.java:71–73

getSysPrompt

public String getSysPrompt()

获取 getSysPrompt。

Returns the sys prompt.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/harness/coding/config/AgentConfigEntry.java:75–77

setSysPrompt

public void setSysPrompt(String sysPrompt)

设置 setSysPrompt。

Sets the sys prompt.

参数Parameters
名称Name类型Type说明Description
sysPromptStringsys 提示词(类型 `String`)。The sys prompt.
源码Source io/agentscope/harness/coding/config/AgentConfigEntry.java:79–81

getWorkspace

public String getWorkspace()

获取工作区。

Returns the workspace.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/harness/coding/config/AgentConfigEntry.java:83–85

setWorkspace

public void setWorkspace(String workspace)

设置工作区。

Sets the workspace.

参数Parameters
名称Name类型Type说明Description
workspaceString工作区(类型 `String`)。The workspace.
源码Source io/agentscope/harness/coding/config/AgentConfigEntry.java:87–89

getMaxIters

public Integer getMaxIters()

获取最大迭代次数。

Returns the max iters.

返回Returns Integer
返回数值结果。Returns a numeric result.
源码Source io/agentscope/harness/coding/config/AgentConfigEntry.java:91–93

setMaxIters

public void setMaxIters(Integer maxIters)

设置最大迭代次数。

Sets the max iters.

参数Parameters
名称Name类型Type说明Description
maxItersInteger最大迭代次数(类型 `Integer`)。The max iters.
源码Source io/agentscope/harness/coding/config/AgentConfigEntry.java:95–97

getEnvironmentMemory

public String getEnvironmentMemory()

获取环境记忆。

Returns the environment memory.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/harness/coding/config/AgentConfigEntry.java:99–101

setEnvironmentMemory

public void setEnvironmentMemory(String environmentMemory)

设置环境记忆。

Sets the environment memory.

参数Parameters
名称Name类型Type说明Description
environmentMemoryString环境记忆(类型 `String`)。The environment memory.
源码Source io/agentscope/harness/coding/config/AgentConfigEntry.java:103–105

getSkillRepository

public SkillRepositoryConfigEntry getSkillRepository()

获取技能仓库。

Returns the skill repository.

返回Returns SkillRepositoryConfigEntry
返回SkillRepositoryConfigEntry。Returns skill repository config entry.
源码Source io/agentscope/harness/coding/config/AgentConfigEntry.java:107–109

setSkillRepository

public void setSkillRepository(SkillRepositoryConfigEntry skillRepository)

设置技能仓库。

Sets the skill repository.

参数Parameters
名称Name类型Type说明Description
skillRepositorySkillRepositoryConfigEntry技能仓库(类型 `SkillRepositoryConfigEntry`)。The skill repository.
源码Source io/agentscope/harness/coding/config/AgentConfigEntry.java:111–113
基于官方固定版本源码静态生成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.