parseResponseToStructuredResponse

Parses a structured response from a language model message using the specified configuration.

Parameters

response

Assistant message to parse.

config

Configuration describing the expected structure.

fixingParser

Optional parser for malformed structured responses.