Skip to content

The open alternative to Salesforce, designed for AI.

262 B
Raw Blame
import { type AgentResponseSchema } from 'twenty-shared/ai';

export const buildStrictAgentResponseSchema = (
  schema: AgentResponseSchema,
): AgentResponseSchema => ({
  ...schema,
  required: Object.keys(schema.properties),
  additionalProperties: false,
});