File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import { CodebuffClient } from '../../../sdk/src/index'
99import type { Runner } from './runner'
1010import type { RunState } from '../../../sdk/src/index'
1111import type { AgentStep } from '../../scaffolding'
12+ import { MAX_AGENT_STEPS_DEFAULT } from '@codebuff/common/constants/agents'
1213
1314const getLocalAuthToken = ( ) => {
1415 return getUserCredentials ( ) ?. authToken
@@ -84,7 +85,7 @@ export class CodebuffRunner implements Runner {
8485 handleStreamChunk : ( chunk ) => {
8586 process . stdout . write ( chunk )
8687 } ,
87- maxAgentSteps : 20 ,
88+ maxAgentSteps : MAX_AGENT_STEPS_DEFAULT ,
8889 agentDefinitions : localAgentDefinitions ,
8990 } )
9091 flushStep ( )
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import {
1212 type ServerAction ,
1313} from '../../common/src/actions'
1414import { API_KEY_ENV_VAR } from '../../common/src/constants'
15- import { DEFAULT_MAX_AGENT_STEPS } from '../../common/src/json-config/ constants'
15+ import { MAX_AGENT_STEPS_DEFAULT } from '../../common/src/constants/agents '
1616import { toolNames } from '../../common/src/tools/constants'
1717import {
1818 clientToolCallSchema ,
@@ -149,7 +149,7 @@ export class CodebuffClient {
149149 knowledgeFiles,
150150 agentDefinitions,
151151 customToolDefinitions,
152- maxAgentSteps = DEFAULT_MAX_AGENT_STEPS ,
152+ maxAgentSteps = MAX_AGENT_STEPS_DEFAULT ,
153153 extraToolResults,
154154 } : {
155155 agent : string
You can’t perform that action at this time.
0 commit comments