Parses the assistant's reply as JSON and returns the corresponding structured data. If the reply is not marked as JSON, attempts to extract and parse JSON content from the text.
Details
For convenience, last_reply_data()
is provided as a wrapper to retrieve the
latest assistant reply's data.
See also
get_reply()
, last_reply_data()