/**
 * Anthropic Chat Model Node - Version 1.1 - Zod Validation Schemas
 *
 * These schemas validate node configuration at runtime.
 * Use .parse() for strict validation or .safeParse() for error handling.
 *
 * Schema helpers (z, expressionSchema, etc.) are passed as parameters
 * by the schema-validator, not imported from external files.
 *
 * @generated - CommonJS JavaScript for runtime loading
 */

module.exports = function getSchema({ parameters, z, expressionSchema, stringOrExpression, numberOrExpression, booleanOrExpression, resourceLocatorValueSchema, resourceMapperValueSchema, filterValueSchema, assignmentCollectionValueSchema, iDataObjectSchema }) {

  // Parameters schema
  const parametersSchema = z.object({
    model: z.union([z.literal('claude-3-5-sonnet-20241022'), z.literal('claude-3-opus-20240229'), z.literal('claude-3-5-sonnet-20240620'), z.literal('claude-3-sonnet-20240229'), z.literal('claude-3-5-haiku-20241022'), z.literal('claude-3-haiku-20240307'), z.literal('claude-2'), z.literal('claude-2.1'), z.literal('claude-instant-1.2'), z.literal('claude-instant-1'), expressionSchema]).optional(),
    options: z.object({ maxTokensToSample: numberOrExpression.optional(), temperature: numberOrExpression.optional(), topK: numberOrExpression.optional(), topP: numberOrExpression.optional(), thinking: booleanOrExpression.optional(), thinkingBudget: numberOrExpression.optional(), thinkingMode: z.union([z.literal('disabled'), z.literal('adaptive'), z.literal('manual'), expressionSchema]).optional(), effort: z.union([z.literal('low'), z.literal('medium'), z.literal('high'), z.literal('xhigh'), z.literal('max'), expressionSchema]).optional(), effort: z.union([z.literal('low'), z.literal('medium'), z.literal('high'), expressionSchema]).optional(), thinkingBudget: numberOrExpression.optional() }).optional(),
  });

  // Return combined config schema
  return z.object({
    parameters: parametersSchema.nullable().optional(),
  });
};