MCPcopy Index your code
hub / github.com/sourcebot-dev/sourcebot / stepCountIsGTE

Function stepCountIsGTE

packages/web/src/ee/features/chat/agent.ts:573–575  ·  view source on GitHub ↗
(stepCount: number)

Source from the content-addressed store, hash-verified

571// If the agent exceeds the step count, then we will stop.
572// eslint-disable-next-line @typescript-eslint/no-explicit-any
573const stepCountIsGTE = (stepCount: number): StopCondition<any> => {
574 return ({ steps }) => steps.length >= stepCount;
575}

Callers 1

createAgentStreamFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected