mirror of
https://github.com/hoshikawa2/nemo_guardrails_configuration.git
synced 2026-07-09 17:04:20 +00:00
10 lines
340 B
Python
10 lines
340 B
Python
import pytest
|
|
from conftest import extract_return_values
|
|
def test_log_structure(rails):
|
|
response = rails.generate(
|
|
messages=[{"role": "user", "content": "teste"}],
|
|
options={"log": {"activated_rails": True, "llm_calls": True}}
|
|
)
|
|
|
|
assert response.log is not None
|
|
assert hasattr(response.log, "activated_rails") |