GuardrailViolationsByType
Properties
Name |
Type |
Description |
Notes |
|---|---|---|---|
violation_type |
str |
[optional] |
|
total |
int |
[optional] |
Example
from h2ogpte.rest_async.models.guardrail_violations_by_type import GuardrailViolationsByType
# TODO update the JSON string below
json = "{}"
# create an instance of GuardrailViolationsByType from a JSON string
guardrail_violations_by_type_instance = GuardrailViolationsByType.from_json(json)
# print the JSON string representation of the object
print(GuardrailViolationsByType.to_json())
# convert the object into a dict
guardrail_violations_by_type_dict = guardrail_violations_by_type_instance.to_dict()
# create an instance of GuardrailViolationsByType from a dict
guardrail_violations_by_type_from_dict = GuardrailViolationsByType.from_dict(guardrail_violations_by_type_dict)