nemoguardrails.testing.chat_harness
nemoguardrails.testing.chat_harness
Ergonomic helper for writing conversational tests against a guardrails config.
Module Contents
Classes
Functions
Data
_TEST_PROVIDERS_WITH_TOKEN_USAGE
API
Helper class for easily writing tests.
Usage: config = RailsConfig.from_path(…) chat = TestChat( config, llm_completions=[ “Hello! How can I help you today?”, ], )
chat.user(“Hello! How are you?”) chat.bot(“Hello! How can I help you today?“)
app
history
input_events
async