ExceedMaxItersEvent
public class ExceedMaxItersEvent extends AgentEvent
源码Source
io/agentscope/core/event/ExceedMaxItersEvent.java:24–65超出最大迭代次数事件,描述执行过程中的事件。位于 io.agentscope.core.event 包,继承自 AgentEvent。核心成员包括 getType、getReplyId、getMaxIters、getCurrentIter、ExceedMaxItersEvent。
Emitted when the agent's ReAct loop exceeds the configured maximum iterations.
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public ExceedMaxItersEvent(String id, String createdAt, String replyId, int maxIters, int currentIter) | 初始化 `ExceedMaxItersEvent` 实例。 Creates a new instance. |
public ExceedMaxItersEvent(String replyId, int maxIters, int currentIter) | 初始化 `ExceedMaxItersEvent` 实例。 Creates a new instance. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public AgentEventType getType() | 获取类型。 Returns the type. |
public String getReplyId() | 获取回复标识。 Returns the reply id. |
public int getMaxIters() | 获取最大迭代次数。 Returns the max iters. |
public int getCurrentIter() | 获取当前迭代次数。 Returns the current iter. |
构造器详情Constructor Detail
ExceedMaxItersEvent
public ExceedMaxItersEvent(String id, String createdAt, String replyId, int maxIters, int currentIter)
初始化 ExceedMaxItersEvent 实例。
Creates a new instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
id | String | 标识(类型 `String`)。The id. |
createdAt | String | 已创建 At(类型 `String`)。The created at. |
replyId | String | 回复标识(类型 `String`)。The reply id. |
maxIters | int | 最大迭代次数(类型 `int`)。The max iters. |
currentIter | int | 当前迭代次数(类型 `int`)。The current iter. |
源码Source
io/agentscope/core/event/ExceedMaxItersEvent.java:30–41ExceedMaxItersEvent
public ExceedMaxItersEvent(String replyId, int maxIters, int currentIter)
初始化 ExceedMaxItersEvent 实例。
Creates a new instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
replyId | String | 回复标识(类型 `String`)。The reply id. |
maxIters | int | 最大迭代次数(类型 `int`)。The max iters. |
currentIter | int | 当前迭代次数(类型 `int`)。The current iter. |
源码Source
io/agentscope/core/event/ExceedMaxItersEvent.java:43–47方法详情Method Detail
getType
public AgentEventType getType()
获取类型。
Returns the type.
AgentEventType返回AgentEventType。Returns agent event type.
源码Source
io/agentscope/core/event/ExceedMaxItersEvent.java:49–52getReplyId
public String getReplyId()
获取回复标识。
Returns the reply id.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/core/event/ExceedMaxItersEvent.java:54–56getMaxIters
public int getMaxIters()
获取最大迭代次数。
Returns the max iters.
int返回数值结果。Returns a numeric result.
源码Source
io/agentscope/core/event/ExceedMaxItersEvent.java:58–60getCurrentIter
public int getCurrentIter()
获取当前迭代次数。
Returns the current iter.
int返回数值结果。Returns a numeric result.
源码Source
io/agentscope/core/event/ExceedMaxItersEvent.java:62–64