completeJson
abstract suspend fun completeJson(model: String, messages: List<LlmMessage>, schema: JsonObject, config: CompletionConfig = CompletionConfig()): JsonObject
Structured-output completion. The provider is instructed to return a JSON object matching schema.
Return
The parsed JSON element. The broker / completeJson<T> deserialises into T.