Values.GuardrailTraceAssessmentSourceA Top level guardrail trace object. For more information, see ConverseTrace.
type nonrec t = {modelOutput : ModelOutputs.t option;The output from the model.
*)inputAssessment : GuardrailAssessmentMap.t option;The input assessment.
*)outputAssessments : GuardrailAssessmentListMap.t option;the output assessments.
*)actionReason : String_.t option;Provides the reason for the action taken when harmful content is detected.
*)}val to_value :
t ->
[> `Structure of
(string
* [> `List of [> `String of GuardrailOutputText.t ] list
| `Map of
([> `String of String_.t ]
* [> `List of
[> `Structure of
(string
* [> `Structure of
(string
* [> `Enum of string
| `List of
[> `Enum of string
| `Structure of
(string
* [> `Boolean of Boolean.t
| `Double of
GuardrailContextualGroundingFilterThresholdDouble.t
| `Enum of string
| `String of String_.t
| `Structure of
(string
* [> `List of
[> `Structure of
(string
* [> `List of
[>
`Structure of
(string
*
[>
`Double of
GuardrailAutomatedReasoningTranslationConfidence.t
| `List of
[>
`Structure of
(string
*
[>
`String of
GuardrailAutomatedReasoningStatementLogicContent.t ])
list ]
list
| `String of
GuardrailAutomatedReasoningStatementLogicContent.t ])
list ]
list
| `String of
AutomatedReasoningRuleIdentifier.t ])
list ]
list
| `Structure of
(string
* [> `Double of
GuardrailAutomatedReasoningTranslationConfidence.t
| `Enum of string
| `List of
[> `Structure of
(string
* [> `String of
GuardrailAutomatedReasoningStatementLogicContent.t ])
list ]
list ])
list ])
list ])
list ]
list
| `Long of GuardrailProcessingLatency.t
| `String of GuardrailId.t
| `Structure of
(string
* [> `Integer of
GuardrailTopicPolicyUnitsProcessed.t
| `Structure of
(string
* [> `Integer of
TextCharactersGuarded.t ])
list ])
list ])
list ])
list ]
list
| `Structure of
(string
* [> `Structure of
(string
* [> `Enum of string
| `List of
[> `Enum of string
| `Structure of
(string
* [> `Boolean of Boolean.t
| `Double of
GuardrailContextualGroundingFilterThresholdDouble.t
| `Enum of string
| `String of String_.t
| `Structure of
(string
* [> `List of
[> `Structure of
(string
* [> `List of
[> `Structure of
(string
* [>
`Double of
GuardrailAutomatedReasoningTranslationConfidence.t
| `List of
[>
`Structure of
(string
*
[>
`String of
GuardrailAutomatedReasoningStatementLogicContent.t ])
list ]
list
| `String of
GuardrailAutomatedReasoningStatementLogicContent.t ])
list ]
list
| `String of
AutomatedReasoningRuleIdentifier.t ])
list ]
list
| `Structure of
(string
* [> `Double of
GuardrailAutomatedReasoningTranslationConfidence.t
| `Enum of string
| `List of
[> `Structure of
(string
* [> `String of
GuardrailAutomatedReasoningStatementLogicContent.t ])
list ]
list ])
list ])
list ])
list ]
list
| `Long of GuardrailProcessingLatency.t
| `String of GuardrailId.t
| `Structure of
(string
* [> `Integer of
GuardrailTopicPolicyUnitsProcessed.t
| `Structure of
(string
* [> `Integer of TextCharactersGuarded.t ])
list ])
list ])
list ])
list ])
list
| `String of String_.t ])
list ]