Skip to content

Commit 5eb6869

Browse files
committed
refactor(agent-runtime): extract helpers from run-agent-step.ts (Commit 2.3)
- Create agent-step-helpers.ts with extracted functions - Add initializeAgentRun, buildInitialMessages, buildToolDefinitions - Add prepareStepContext, handleOutputSchemaRetry helpers - Add error utilities: extractErrorMessage, isPaymentRequiredError, getErrorStatusCode - Reduce run-agent-step.ts from ~966 to ~850 lines
1 parent c81d5b2 commit 5eb6869

File tree

2 files changed

+558
-261
lines changed

2 files changed

+558
-261
lines changed

0 commit comments

Comments
 (0)