import { z } from 'zod';
import { defineTool, } from '../toolDefinition.js';
import { AgentToolNames } from '../shared/agentToolNames.js';
import { testPlanSchema } from '../testPlanning/schemas.js';
export const updateCurrentTaskToolParamsSchema = z.object({
    reason: 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
 */
export const updateCurrentTaskToolResponseSchema = z.object({
    updatedTestOutline: testPlanSchema.meta({
        description: 'The updated test outline',
    }),
});
export const UpdateCurrentTaskToolV2Definition = defineTool({
    name: 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: updateCurrentTaskToolParamsSchema,
    responseSchema: updateCurrentTaskToolResponseSchema,
});
//# sourceMappingURL=UpdateCurrentTaskDefinition.js.map