generateRequest static method
Generated-proto structured output entrypoint.
Implementation
static Future<StructuredOutputResult> generateRequest(
StructuredOutputRequest request,
) async {
if (!DartBridge.isInitialized) throw SDKException.notInitialized();
if (RunAnywhereLLM.shared.currentModelId == null) {
throw SDKException.componentNotReady(
'LLM model not loaded. Call RunAnywhere.llm.load(modelId) first.',
);
}
return DartBridgeStructuredOutput.shared.generate(request);
}