Skip to content

Commit c747498

Browse files
committed
Single constant for max agents steps. Increase to 200
1 parent 2accd40 commit c747498

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

cli/src/utils/create-run-config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import path from 'path'
22

3+
import { MAX_AGENT_STEPS_DEFAULT } from '@codebuff/common/constants/agents'
4+
35
import {
46
createEventHandler,
57
createStreamChunkHandler,
@@ -109,7 +111,7 @@ export const createRunConfig = (params: CreateRunConfigParams) => {
109111
content,
110112
previousRun: previousRunState ?? undefined,
111113
agentDefinitions,
112-
maxAgentSteps: 100,
114+
maxAgentSteps: MAX_AGENT_STEPS_DEFAULT,
113115
handleStreamChunk: createStreamChunkHandler(eventHandlerState),
114116
handleEvent: createEventHandler(eventHandlerState),
115117
signal: params.signal,

common/src/constants/agents.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,4 +92,4 @@ export const AGENT_NAME_TO_TYPES = Object.entries(AGENT_NAMES).reduce(
9292
{} as Record<string, string[]>,
9393
)
9494

95-
export const MAX_AGENT_STEPS_DEFAULT = 150
95+
export const MAX_AGENT_STEPS_DEFAULT = 200

0 commit comments

Comments
 (0)