parseResponseToStructuredResponse
fun <T> parseResponseToStructuredResponse(response: ERROR CLASS: Symbol not found for Message.Assistant, config: ERROR CLASS: Symbol not found for StructuredRequestConfig<T>, fixingParser: ERROR CLASS: Symbol not found for StructureFixingParser?? = null, executorService: ExecutorService? = null): ERROR CLASS: Symbol not found for StructuredResponse<T>(source)
Parses an assistant response into a strongly typed StructuredResponse according to the given configuration.
Return
the parsed structured response
Parameters
response
the assistant message to parse
config
the structured request configuration describing the expected output
executorService
an optional executor service for managing the execution context; if null, the default dispatcher is used