NativeStructuredOutputMode

Per-call native structured-output mode.

This is intentionally small and additive: it lets callers override the runtime decision without changing the public LlmOptions data shape.

Entries

Link copied to clipboard

Check schema compatibility before using the native path. If the schema is not conservatively compatible, fall back to prompt-based extraction and log at DEBUG. Use ENABLED to force the native path regardless, or DISABLED to opt out entirely.

Link copied to clipboard

Always use the native structured-output path when the provider supports it, bypassing the schema compatibility check. The schema must still be valid for the provider.

Link copied to clipboard

Always use prompt-based extraction; never use the native path.

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Apply this native structured-output mode to options.

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.