ReactConfig
@JsonIgnoreProperties(ignoreUnknown = true) public record ReactConfig( @JsonProperty("max_iters") int maxIters, @JsonProperty("stop_on_reject") boolean stopOnReject)
io/agentscope/core/agent/config/ReactConfig.java:28–55承载 ReAct 配置数据的记录类型。位于 io.agentscope.core.agent.config 包。核心成员包括 maxIters、stopOnReject、defaults、ReactConfig、DEFAULT_MAX_ITERS、DEFAULT_STOP_ON_REJECT。
Reasoning-loop configuration. #maxIters() caps the number of
reasoning→acting iterations within a single reply; #stopOnReject() controls whether
a permission rejection of any tool call terminates the loop (instead of feeding the rejection
back into the next reasoning round).
记录组件摘要Record Component Summary
| 组件Component | 类型Type | 说明Description |
|---|---|---|
maxIters | int | 执行最大迭代次数相关操作。 Performs the max iters operation. |
stopOnReject | boolean | 停止On 拒绝。 Stops the on reject. |
字段摘要Field Summary
| 字段Field | 类型Type | 说明Description |
|---|---|---|
DEFAULT_MAX_ITERSstaticfinal | int | 默认最大迭代次数字段。 The DEFAULT MAX ITERS field. |
DEFAULT_STOP_ON_REJECTstaticfinal | boolean | 默认停止 ON 拒绝字段。 The DEFAULT STOP ON REJECT field. |
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public ReactConfig(int maxIters, boolean stopOnReject) | 初始化 `ReactConfig` 实例。 Creates a new instance. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public static ReactConfig defaults()static | 返回 `defaults` 结果。 Returns a config initialised to all default values. |
记录组件详情Record Component Detail
maxIters
int maxIters执行最大迭代次数相关操作。
Performs the max iters operation.
io/agentscope/core/agent/config/ReactConfig.java:28–55stopOnReject
boolean stopOnReject停止On 拒绝。
Stops the on reject.
io/agentscope/core/agent/config/ReactConfig.java:28–55字段详情Field Detail
DEFAULT_MAX_ITERS
public static final int DEFAULT_MAX_ITERS
默认最大迭代次数字段。声明为 public static final int DEFAULT_MAX_ITERS。
The DEFAULT MAX ITERS field.
io/agentscope/core/agent/config/ReactConfig.java:33DEFAULT_STOP_ON_REJECT
public static final boolean DEFAULT_STOP_ON_REJECT
默认停止 ON 拒绝字段。声明为 public static final boolean DEFAULT_STOP_ON_REJECT。
The DEFAULT STOP ON REJECT field.
io/agentscope/core/agent/config/ReactConfig.java:34构造器详情Constructor Detail
ReactConfig
public ReactConfig(int maxIters, boolean stopOnReject)
初始化 ReactConfig 实例。
Creates a new instance.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
maxIters | int | 最大迭代次数(类型 `int`)。The max iters. |
stopOnReject | boolean | 停止 On 拒绝(类型 `boolean`)。The stop on reject. |
io/agentscope/core/agent/config/ReactConfig.java:36–40方法详情Method Detail
defaults
public static ReactConfig defaults()
返回 defaults 结果。
Returns a config initialised to all default values.
ReactConfigio/agentscope/core/agent/config/ReactConfig.java:43–45