AgentConfigEntry
@JsonInclude(JsonInclude.Include.NON_EMPTY) @JsonIgnoreProperties(ignoreUnknown = true) public class AgentConfigEntry
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 Detail
getName
public String getName()
获取名称。
Returns the name.
Stringio/agentscope/harness/coding/config/AgentConfigEntry.java:59–61setName
public void setName(String name)
设置名称。
Sets the name.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
name | String | 名称(类型 `String`)。The name. |
io/agentscope/harness/coding/config/AgentConfigEntry.java:63–65getDescription
public String getDescription()
获取 getDescription。
Returns the description.
Stringio/agentscope/harness/coding/config/AgentConfigEntry.java:67–69setDescription
public void setDescription(String description)
设置 setDescription。
Sets the description.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
description | String | 描述(类型 `String`)。The description. |
io/agentscope/harness/coding/config/AgentConfigEntry.java:71–73getSysPrompt
public String getSysPrompt()
获取 getSysPrompt。
Returns the sys prompt.
Stringio/agentscope/harness/coding/config/AgentConfigEntry.java:75–77setSysPrompt
public void setSysPrompt(String sysPrompt)
设置 setSysPrompt。
Sets the sys prompt.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
sysPrompt | String | sys 提示词(类型 `String`)。The sys prompt. |
io/agentscope/harness/coding/config/AgentConfigEntry.java:79–81getWorkspace
public String getWorkspace()
获取工作区。
Returns the workspace.
Stringio/agentscope/harness/coding/config/AgentConfigEntry.java:83–85setWorkspace
public void setWorkspace(String workspace)
设置工作区。
Sets the workspace.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
workspace | String | 工作区(类型 `String`)。The workspace. |
io/agentscope/harness/coding/config/AgentConfigEntry.java:87–89getMaxIters
public Integer getMaxIters()
获取最大迭代次数。
Returns the max iters.
Integerio/agentscope/harness/coding/config/AgentConfigEntry.java:91–93setMaxIters
public void setMaxIters(Integer maxIters)
设置最大迭代次数。
Sets the max iters.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
maxIters | Integer | 最大迭代次数(类型 `Integer`)。The max iters. |
io/agentscope/harness/coding/config/AgentConfigEntry.java:95–97getEnvironmentMemory
public String getEnvironmentMemory()
获取环境记忆。
Returns the environment memory.
Stringio/agentscope/harness/coding/config/AgentConfigEntry.java:99–101setEnvironmentMemory
public void setEnvironmentMemory(String environmentMemory)
设置环境记忆。
Sets the environment memory.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
environmentMemory | String | 环境记忆(类型 `String`)。The environment memory. |
io/agentscope/harness/coding/config/AgentConfigEntry.java:103–105getSkillRepository
public SkillRepositoryConfigEntry getSkillRepository()
获取技能仓库。
Returns the skill repository.
SkillRepositoryConfigEntryio/agentscope/harness/coding/config/AgentConfigEntry.java:107–109setSkillRepository
public void setSkillRepository(SkillRepositoryConfigEntry skillRepository)
设置技能仓库。
Sets the skill repository.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
skillRepository | SkillRepositoryConfigEntry | 技能仓库(类型 `SkillRepositoryConfigEntry`)。The skill repository. |
io/agentscope/harness/coding/config/AgentConfigEntry.java:111–113