nemoguardrails.logging.processing_log

View as Markdown

Module Contents

Functions

NameDescription
compute_generation_logComputes the GenerationLog based on the processing log.

Data

processing_log_var

API

nemoguardrails.logging.processing_log.compute_generation_log(
processing_log: typing.List[dict]
) -> nemoguardrails.rails.llm.options.GenerationLog

Computes the GenerationLog based on the processing log.

The processing log is a raw sequence of all the relevant events. The generation log is a more structured, curated, version of it.

nemoguardrails.logging.processing_log.processing_log_var = contextvars.ContextVar('processing_log', default=None)