import { z } from 'zod';
import { defineTool, } from '../toolDefinition.js';
import { AgentToolNames } from './agentToolNames.js';
const completeSessionArgumentsSchema = z.object({
    summary: z.string().describe('A summary of what was accomplished in this session.'),
    source_filenames: z
        .array(z.string())
        .describe('Filenames of files produced during this session that contain the results.'),
});
const completeSessionResponseSchema = z.object({
    success: z.boolean(),
    message: z.string().optional(),
});
export const CompleteSessionToolDefinition = defineTool({
    name: AgentToolNames.CompleteSession,
    description: 'Signals that the agent has finished its work and the session is complete. Call this after saving all output files. For cloud-only agents this terminates the session. For interactive agents this returns control to the user.',
    argumentsSchema: completeSessionArgumentsSchema,
    responseSchema: completeSessionResponseSchema,
});
//# sourceMappingURL=CompleteSessionDefinition.js.map