nemoguardrails.tracing.adapters.filesystem

View as Markdown

Module Contents

Classes

NameDescription
FileSystemAdapter-

API

class nemoguardrails.tracing.adapters.filesystem.FileSystemAdapter(
filepath: typing.Optional[str] = None
)

Bases: InteractionLogAdapter

filepath
= './.traces/trace.jsonl'
name
= 'FileSystem'
nemoguardrails.tracing.adapters.filesystem.FileSystemAdapter.transform(
interaction_log: 'InteractionLog'
)

Transforms the InteractionLog into a JSON string.

nemoguardrails.tracing.adapters.filesystem.FileSystemAdapter.transform_async(
interaction_log: 'InteractionLog'
)
async