import { z } from 'zod' import type { ToolContract } from './types' const inputSchema = z.object({ summary: z .string() .trim() .min(1, 'Resolution summary is required') .describe('A concise summary of the fix or guidance that resolved the support request.'), }) export const contract = { name: 'resolve_support_conversation', description: 'Mark this support conversation as resolved when the issue appears solved from the user perspective.', inputSchema, outputSchema: z.object({ status: z.string() }), minOptInLevel: null, availability: { environments: new Set(['platform']), requires: new Set(['supportMode']), }, needsApproval: false, promptGuidance: `- Only call \`resolve_support_conversation\` after the user explicitly confirms the issue is resolved; otherwise keep helping.`, toModelOutput: ({ status }) => ({ status }), } as const satisfies ToolContract