Skip to content

Function: parseReasoningLevels()

parseReasoningLevels(body): ReasoningLevel[]

Extract supported reasoning levels from an upstream error body.

Accepts raw response text, already-parsed JSON, or Databricks envelopes that nest JSON strings several times. Returns [] when no supported-values list can be recovered. Results are not cached.

unknown

ReasoningLevel[]