Anthropic currently only supports structured (JSON) output with beta mode enabled for their Messages API. So if you want to use Claude with JSON output you need to use their beta Messages API. Please add automatic tracing support for Anthropic Messages when the beta mode is enabled.