mirror of
https://github.com/hoshikawa2/nemo_guardrails_configuration.git
synced 2026-07-09 17:04:20 +00:00
Funcional
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
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")
|
||||
Reference in New Issue
Block a user