Commit 5eb6869
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 lines1 parent c81d5b2 commit 5eb6869
File tree
2 files changed
+558
-261
lines changed- packages/agent-runtime/src
2 files changed
+558
-261
lines changed
0 commit comments