Use this endpoint to retrieve a specific event of a guardrail workflow
status, whether the output needed to be filtered out, the improved_model_output if it needed remediation, and more.filtered field is set to true when the event fails one or more metrics on the most recent evaluation and is set to false if all metric evaluations were above their thresholds. If filtered is true, then an improvement attempt will begin immediately after the initial evaluation concludes.evaluation_history field is an array of the details for each evaluation performed for the event. It can be used to track the progress of the event and see how DeepRails improved your model output over time.Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The ID of the workflow associated with the event.
The ID of the requested workflow event.
Workflow event details retrieved successfully
Workflow ID associated with the event.
"wkfl_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
A unique workflow event ID.
"evt_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
Status of the event.
In Progress, Completed "Completed"
Type of improvement action used to improve the event.
regen, fixit, do_nothing "fixit"
Type of thresholds used to evaluate the event.
custom, automatic "custom"
Whether the event was filtered and requires improvement.
false
Status of the improvement tool used to improve the event.
improved, failed on max retries, improvement_required, null
Improved model output after improvement tool was applied and each metric passed evaluation.
null
Evaluation result consisting of average scores and rationales for each of the evaluated guardrail metrics.
{
"correctness": {
"score": 1,
"rationale": "The response correctly and concisely summarizes core features of franchise agreements: it gives an accurate definitional statement, correctly identifies the parties and their roles, and lists the common commercial provisions (fees/royalties, term/renewal, and dispute-resolution mechanisms) with appropriately cautious language (e.g., 'often' and 'likely to see').",
"threshold": 0.9
},
"completeness": {
"score": 0.9166666666666667,
"rationale": "The AI response is accurate, well-organized, and directly addresses both parts of the user's request (it correctly requests the file and gives a clear overview of franchise agreements). The primary shortcoming is depth: the reply is a solid preliminary checklist but does not provide clause-level detail, jurisdiction-specific guidance, sample language, numerical norms (e.g., typical royalty percentages or fee ranges by industry), or prioritized negotiation strategies that would be expected for a high-standard explanatory review.",
"threshold": 0.8
}
}History of evaluations for the event.
Mapping of guardrail metric names to tolerance values. Values are strings (low, medium, high) representing automatic tolerance levels.
null
Mapping of guardrail metric names to threshold values. Values are floating point numbers (0.0-1.0) representing custom thresholds.
{ "correctness": 0.9, "completeness": 0.8 }Extended AI capabilities available to the event, if any. Can be web_search and/or file_search.
List of files available to the event, if any. Will only be present if file_search is enabled.