"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.toolUpdateUserNameOutputSchema = exports.toolUpdateUserNameArgsSchema = exports.TOOL_UPDATE_USER_NAME_DESCRIPTION = void 0;
const zod_1 = require("zod");
exports.TOOL_UPDATE_USER_NAME_DESCRIPTION = "Update the first and last name of the user you are currently talking to. Use this when the user tells you their name — either because you asked (their name has not been collected yet) or because they want to correct how their name is stored. Only save a name the user explicitly provided for themselves; never invent or infer one, and never use it to change another user's name.";
exports.toolUpdateUserNameArgsSchema = zod_1.z.object({
    firstName: zod_1.z.string().trim().min(1).max(255),
    lastName: zod_1.z.string().trim().min(1).max(255),
});
const toolUpdateUserNameMetadataSchema = zod_1.z.discriminatedUnion('status', [
    zod_1.z.object({ status: zod_1.z.literal('error') }),
    zod_1.z.object({
        status: zod_1.z.literal('success'),
        fullName: zod_1.z.string(),
    }),
]);
exports.toolUpdateUserNameOutputSchema = zod_1.z.object({
    result: zod_1.z.string(),
    metadata: toolUpdateUserNameMetadataSchema,
});
//# sourceMappingURL=toolUpdateUserNameArgs.js.map