type AgentLoopStrategy = (state) => boolean;
定义于: types.ts:592
策略函数,用于确定代理循环是否应继续
AgentLoopState
代理循环的当前状态
boolean
如果为 true,则继续循环,如果为 false,则停止
// Continue for up to 5 iterations const strategy: AgentLoopStrategy = ({ iterationCount }) => iterationCount < 5;