RequiredFieldStrategy

Strategy for determining which parameters should be marked as required in the function schema.

This strategy ONLY affects which fields are included in the required array. Other OpenAI Strict Mode features (additionalProperties: false, strict: true flag) are always enabled.

See also

Entries

Link copied to clipboard

OpenAI Strict Mode (Default): All parameters are marked as required.

Link copied to clipboard

Non-strict mode: Only non-nullable parameters are marked as required.

Link copied to clipboard

Use the DefaultPresence from the introspector to determine required fields.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.