async def fix_json_using_multiple_techniques(assistant_reply: str) -> Dict[Any, Any]:
    """Fix the given JSON string to make it parseable and fully compliant with two techniques.

    Args:
        json_string (str): The JSON string to fix.

    Returns:
        str: The fixed JSON string.
    """

    # Parse and print Assistant response
    assistant_reply_json = await fix_and_parse_json(assistant_reply)
    if assistant_reply_json == {}:
        assistant_reply_json = await attempt_to_fix_json_by_finding_outermost_brackets(
            assistant_reply
        )

    if assistant_reply_json != {}:
        return assistant_reply_json

    logger.debug(
        "warn: The following AI output couldn't be converted to a JSON:\n",
        assistant_reply,
    )
    # if CFG.speak_mode:
    #     say_text("I have received an invalid JSON response from the OpenAI API.")

    return {}
Fix the given JSON string to make it parseable and fully compliant with two techniques.

    Args:
        json_string (str): The JSON string to fix.

    Returns:
        str: The fixed JSON string.
    
PoC/agent_jarvis/jarvis/json_utils/json_fix_llm.py