Skip to content

Commit 5c62bbc

Browse files
refactor(agent-definition): remove | string from handleSteps return type to ensure consistent typing across user-facing agent definition files
🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
1 parent b534320 commit 5c62bbc

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

common/src/templates/initial-agents-dir/types/agent-definition.ts

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -196,17 +196,15 @@ export interface AgentDefinition {
196196
handleSteps?: (
197197
context: AgentStepContext,
198198
logger: Logger,
199-
) =>
200-
| Generator<
201-
ToolCall | 'STEP' | 'STEP_ALL',
202-
void,
203-
{
204-
agentState: AgentState
205-
toolResult: ToolResultOutput[] | undefined
206-
stepsComplete: boolean
207-
}
208-
>
209-
| string
199+
) => Generator<
200+
ToolCall | 'STEP' | 'STEP_ALL',
201+
void,
202+
{
203+
agentState: AgentState
204+
toolResult: ToolResultOutput[] | undefined
205+
stepsComplete: boolean
206+
}
207+
>
210208
}
211209

212210
// ============================================================================

0 commit comments

Comments
 (0)