import logging import sys logging.basicConfig(stream=sys.stdout, level=logging.DEBUG) logging.getLogger().addHandler(logging.StreamHandler(stream=sys.stdout))
event_pairs = llama_debug.get_event_pairs(CBEventType.LLM)
to get the LLM events after the query, then optionally use flush_event_logs()
to clear the events