elm.ords.utilities.parsing.llm_response_as_json

llm_response_as_json(content)[source]

LLM response to JSON.

Parameters:

content (str) – LLM response that contains a string representation of a JSON file.

Returns:

dict – Response parsed into dictionary. This dictionary will be empty if the response cannot be parsed by JSON.