import { z } from 'zod';
import { defineTool, } from '../toolDefinition.js';
import { AgentToolNames } from '../shared/agentToolNames.js';
export const executeElseArgumentsSchema = z.object({
    intent: z
        .string()
        .optional()
        .describe('A short description of what this ELSE branch is intended to handle (e.g. "user is not logged in"). Recorded as an echo step in the test for readability.'),
});
export const executeElseResponseSchema = z.object({
    success: z.boolean(),
    message: z.string().optional(),
});
export const ExecuteElseToolDefinition = defineTool({
    name: AgentToolNames.ExecuteElse,
    description: "Adds an ELSE (fallback) branch to an existing conditional block. Must appear after an assertion tool with conditionalType='IF' or 'ELSEIF', and before END. Steps recorded after this tool call execute only when all preceding IF/ELSE-IF conditions are false. At most one ELSE is allowed per conditional block.",
    argumentsSchema: executeElseArgumentsSchema,
    responseSchema: executeElseResponseSchema,
});
//# sourceMappingURL=ExecuteElseDefinition.js.map