llm_client
Fill in a module description here
parse_llm_json_response
parse_llm_json_response (response:str)
*Parse JSON response from LLM, handling common formatting issues.
Args: response: Raw response string from LLM
Returns: Parsed JSON object
Raises: LLMClientError: If JSON cannot be parsed*
get_llm_response
get_llm_response (prompt:str, config:llm_data_extractor.models.LLMConfig)
*Get response from LLM API with retry logic.
Args: prompt: The prompt to send to the LLM config: LLM configuration object
Returns: Raw response string from the LLM
Raises: LLMClientError: If all retry attempts fail*
LLMClientError
Custom exception for LLM client errors.