"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ExecuteElseToolDefinition = exports.executeElseResponseSchema = exports.executeElseArgumentsSchema = void 0;
var zod_1 = require("zod");
var toolDefinition_js_1 = require("../toolDefinition.js");
var agentToolNames_js_1 = require("../shared/agentToolNames.js");
exports.executeElseArgumentsSchema = zod_1.z.object({
    intent: zod_1.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.'),
});
exports.executeElseResponseSchema = zod_1.z.object({
    success: zod_1.z.boolean(),
    message: zod_1.z.string().optional(),
});
exports.ExecuteElseToolDefinition = (0, toolDefinition_js_1.defineTool)({
    name: agentToolNames_js_1.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: exports.executeElseArgumentsSchema,
    responseSchema: exports.executeElseResponseSchema,
});
//# sourceMappingURL=ExecuteElseDefinition.js.map