Skip to content

Commit 94e890b

Browse files
authored
feat(tarko): adjust maxIterations default to 1000 (#1289)
1 parent ba4509b commit 94e890b

6 files changed

Lines changed: 6 additions & 6 deletions

File tree

multimodal/agent-tars/core/examples/default.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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',

multimodal/agent-tars/core/src/shared/config-utils.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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
};

multimodal/gui-agent/agent-sdk/src/SeedGUIAgent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

multimodal/omni-tars/core/src/ComposableAgent.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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
});

multimodal/tarko/agent-interface/src/agent-options.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,10 @@ export interface AgentToolOptions {
152152
export 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
}

multimodal/tarko/agent/src/agent/agent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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';

0 commit comments

Comments
 (0)