"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.UpdateCurrentTaskToolV2Definition = exports.updateCurrentTaskToolResponseSchema = exports.updateCurrentTaskToolParamsSchema = void 0;
var zod_1 = require("zod");
var toolDefinition_js_1 = require("../toolDefinition.js");
var agentToolNames_js_1 = require("../shared/agentToolNames.js");
var schemas_js_1 = require("../testPlanning/schemas.js");
exports.updateCurrentTaskToolParamsSchema = zod_1.z.object({
    reason: zod_1.z.string().meta({
        description: 'The reason for updating the current task or test outline. Explain what should be changed about the current task or outline.',
    }),
});
/**
 * Response contains the updated test outline
 */
exports.updateCurrentTaskToolResponseSchema = zod_1.z.object({
    updatedTestOutline: schemas_js_1.testPlanSchema.meta({
        description: 'The updated test outline',
    }),
});
exports.UpdateCurrentTaskToolV2Definition = (0, toolDefinition_js_1.defineTool)({
    name: agentToolNames_js_1.AgentToolNames.UpdateCurrentTask,
    description: 'Update the current task or test outline when the current task plan is incorrect or needs modification. This tool should only be used when you determine that the current task cannot be completed as specified and needs to be replanned.',
    argumentsSchema: exports.updateCurrentTaskToolParamsSchema,
    responseSchema: exports.updateCurrentTaskToolResponseSchema,
});
//# sourceMappingURL=UpdateCurrentTaskDefinition.js.map