requestLLMStructured
Sends a structured request to the language model using a StructuredRequestConfig.
Return
a Result containing a StructuredResponse on success or an error on failure
Parameters
the configuration describing the expected structured output and parsing behavior
an optional executor service for managing the execution context; if null, the default dispatcher is used
Sends a structured request to the language model using an explicit serializer and example values.
Return
a Result containing a StructuredResponse on success or an error on failure
Parameters
the serializer describing how to encode/decode the structured type T
example values to guide the model towards the expected structure
an optional parser used to repair malformed structured responses
an optional executor service for managing the execution context; if null, the default dispatcher is used