Normandy.LLM.StructuredOutputs (normandy v1.3.0)

View Source

Decides whether a request should use Anthropic structured outputs. Enabled by default; disable globally via config :normandy, :structured_outputs, false or per-call via client.options[:structured_outputs]. A schema that the SchemaTranslator cannot express falls back (:skip).

Summary

Functions

enabled?(client)

@spec enabled?(struct()) :: boolean()

schema_for(client, response_model)

@spec schema_for(
  struct(),
  term()
) :: {:ok, map()} | :skip