File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ export const DEFUALT_OPTIONS: AgentTARSOptions = {
1818 apiKey : process . env . ARK_API_KEY ,
1919 } ,
2020 toolCallEngine : 'prompt_engineering' ,
21- maxIterations : 100 ,
21+
2222 // temperature: 0,
2323 thinking : {
2424 type : 'disabled' ,
Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ export const AGENT_TARS_DEFAULT_OPTIONS: AgentTARSOptions = {
2626 } ,
2727 mcpImpl : 'in-memory' ,
2828 mcpServers : { } ,
29- maxIterations : 100 ,
3029 maxTokens : 8192 ,
3130 enableStreamingToolCallEvents : true ,
3231} ;
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ export class SeedGUIAgent extends Agent {
4747 tools : [ ] ,
4848 toolCallEngine : SeedGUIAgentToolCallEngine ,
4949 model : model ,
50- maxIterations : maxLoopCount ?? 100 ,
50+ ... ( maxLoopCount && { maxIterations : maxLoopCount } ) ,
5151 logLevel : LogLevel . ERROR ,
5252 } ) ;
5353
Original file line number Diff line number Diff line change @@ -32,7 +32,6 @@ export class ComposableAgent extends Agent {
3232 super ( {
3333 // instructions: SYSTEM_PROMPT,
3434 instructions : composer . generateSystemPrompt ( ) ,
35- maxIterations : optionsWithoutPlugins . maxIterations || 100 ,
3635 //Remove plugins to prevent circular reference from reporting errors
3736 ...optionsWithoutPlugins ,
3837 } ) ;
Original file line number Diff line number Diff line change @@ -152,8 +152,10 @@ export interface AgentToolOptions {
152152export interface AgentLoopOptions {
153153 /**
154154 * Maximum number of iterations of the agent.
155+ * Modern LLM models have improved agentic loop-horizon task capabilities,
156+ * allowing for more complex multi-step reasoning processes.
155157 *
156- * @defaultValue `50 `
158+ * @defaultValue `1000 `
157159 */
158160 maxIterations ?: number ;
159161}
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ export class Agent<T extends AgentOptions = AgentOptions>
8888 super ( options as T ) ;
8989
9090 this . instructions = options . instructions || this . getDefaultPrompt ( ) ;
91- this . maxIterations = options . maxIterations ?? 10 ;
91+ this . maxIterations = options . maxIterations ?? 1000 ;
9292 this . maxTokens = options . maxTokens ;
9393 this . name = options . name ?? 'Anonymous' ;
9494 this . id = options . id ?? '@tarko/agent' ;
You can’t perform that action at this time.
0 commit comments