import { z } from 'zod';
import { defineTool, } from '../toolDefinition.js';
import { AgentToolNames } from '../shared/agentToolNames.js';
export const executeAskForHelpArgumentsSchema = z.object({
    question: z.string().describe('The question or request for the user, written in natural language.'),
});
export const executeAskForHelpResponseSchema = z.object({
    success: z.boolean(),
    message: z.string().optional(),
});
export const ExecuteAskForHelpToolDefinition = defineTool({
    name: AgentToolNames.ExecuteAskForHelp,
    description: `Ask for help from the user when you need assistance. Use this tool when:
- You need to perform an action that you don't have a tool for
- You need information to complete your task
- The current task cannot be completed and there are no appropriate actions to take
- You're uncertain about how to proceed
- You have already tried all possible actions and are stuck
- You appear to be stuck in a loop without making progress

Do your best to complete your task independently before asking for help, but do not allow yourself to get stuck in a loop without making progress for very long.`,
    argumentsSchema: executeAskForHelpArgumentsSchema,
    responseSchema: executeAskForHelpResponseSchema,
});
//# sourceMappingURL=ExecuteAskForHelpDefinition.js.map