completeJsonResponse

open suspend fun completeJsonResponse(model: String, messages: List<LlmMessage>, schema: JsonObject, config: CompletionConfig = CompletionConfig()): LlmGatewayResponse

Structured-output completion that also returns provider evidence.

The parsed object is in LlmGatewayResponse.structuredJson; usage, provider model, finish reason and metadata are filled where the provider reports them. The default wraps completeJson and reports no evidence.