execute Structured Or Throw
inline suspend fun <OutputStructT> PromptExecutor.executeStructuredOrThrow(prompt: Prompt, model: LLModel): OutputStructT
Executes prompt against model, requesting a structured response of type OutputStructT, and returns the parsed data.
The JSON schema for OutputStructT is generated automatically via StandardJsonSchemaGenerator.
Throws
wrapping the underlying cause if the structured call or parsing fails.