{ "workflow_id": "wkfl_xxxxxxxxxxxx", "event_id": "evt_xxxxxxxxxxxx", "status": "Completed", "improvement_action": "fixit", "threshold_type": "custom", "filtered": false, "improvement_tool_status": "improved", "improved_model_output": "Mitosis creates haploid gametes for reproduction, while meiosis produces identical diploid cells for growth.", "evaluation_result": { "completeness": { "score": 0.89, "rationale": "The sentence is concise, relevant, and well-structured, and it covers the main differences (cell number, genetic similarity, ploidy, and biological role) appropriate to a one-sentence answer. However, it overgeneralizes and makes unqualified universal claims: stating mitosis produces 'diploid' cells and meiosis produces 'four ... gametes' can be inaccurate in some biological contexts (e.g., mitosis in haploid cells or organisms, and oogenesis producing one functional ovum plus polar bodies). To make the sentence both accurate and still compact, add brief qualifiers—for example: 'In diploid organisms, mitosis produces two genetically similar diploid daughter cells for growth and repair, whereas meiosis involves two divisions that typically yield four genetically varied haploid cells (gametes), although in female animals often only one functional gamete results.' This preserves brevity while removing the main factual overgeneralizations.", "threshold": 0.8 }, "instruction_adherence": { "score": 1, "rationale": "The response exemplary meets the explicit instructions by delivering a single, well-formed sentence that clearly contrasts mitosis and meiosis using key distinguishing features (cell number, genetic identity/variation, ploidy, and biological purpose), showing concise and accurate adherence to the prompt.", "threshold": 0.8 } }, "evaluation_history": [ { "attempt": "Initial Evaluation", "evaluation_status": "completed", "improvement_tool_status": "improvement_required", "analysis_of_failures": "The response is concise, and well-structured, but it does not cover the main differences (cell number, genetic similarity, ploidy, and biological role) appropriate to a one-sentence answer.", "key_improvements": [ "Added a brief qualifier to the sentence to make it more accurate.", "Added a more detailed explanation of the differences between mitosis and meiosis." ], "guardrail_metrics": [ "completeness", "instruction_adherence" ], "run_mode": "precision", "model_input": { "user_prompt": "Explain the difference between mitosis and meiosis in one sentence.", "context": [ { "role": "user", "content": "I have an AP Bio exam tomorrow, can you help me study?" }, { "role": "tutor", "content": "Sure, I'll help you study." } ] }, "model_output": "Mitosis creates haploid gametes for reproduction, while meiosis produces identical diploid cells for growth.", "nametag": "Test", "progress": 100, "error_message": null, "evaluation_result": { "completeness": { "score": 0.6, "rationale": "The response is concise, and well-structured, but it does not cover the main differences (cell number, genetic similarity, ploidy, and biological role) appropriate to a one-sentence answer.", "threshold": 0.8 }, "instruction_adherence": { "score": 0.25, "rationale": "The response does not highlight the key differences between mitosis and meiosis.", "threshold": 0.8 } }, "evaluation_total_cost": 0.01, "created_at": "2025-11-10T01:32:44.591Z" }, { "attempt": "Improvement Attempt 1", "evaluation_status": "completed", "improvement_tool_status": "improved", "analysis_of_failures": null, "key_improvements": null, "guardrail_metrics": [ "completeness", "instruction_adherence" ], "run_mode": "precision", "model_input": { "user_prompt": "Explain the difference between mitosis and meiosis in one sentence.", "context": [ { "role": "user", "content": "I have an AP Bio exam tomorrow, can you help me study?" }, { "role": "tutor", "content": "Sure, I'll help you study." } ] }, "model_output": "Mitosis produces two genetically identical diploid cells for growth and tissue repair, whereas meiosis generates four genetically varied haploid gametes for sexual reproduction.", "nametag": "Test", "progress": 100, "error_message": null, "evaluation_result": { "completeness": { "score": 0.89, "rationale": "The sentence is concise, relevant, and well-structured, and it covers the main differences (cell number, genetic similarity, ploidy, and biological role) appropriate to a one-sentence answer. However, it overgeneralizes and makes unqualified universal claims: stating mitosis produces 'diploid' cells and meiosis produces 'four ... gametes' can be inaccurate in some biological contexts (e.g., mitosis in haploid cells or organisms, and oogenesis producing one functional ovum plus polar bodies). To make the sentence both accurate and still compact, add brief qualifiers—for example: 'In diploid organisms, mitosis produces two genetically similar diploid daughter cells for growth and repair, whereas meiosis involves two divisions that typically yield four genetically varied haploid cells (gametes), although in female animals often only one functional gamete results.' This preserves brevity while removing the main factual overgeneralizations.", "threshold": 0.8 }, "instruction_adherence": { "score": 1, "rationale": "The response exemplary meets the explicit instructions by delivering a single, well-formed sentence that clearly contrasts mitosis and meiosis using key distinguishing features (cell number, genetic identity/variation, ploidy, and biological purpose), showing concise and accurate adherence to the prompt.", "threshold": 0.8 } }, "evaluation_total_cost": 0.01, "created_at": "2025-11-10T01:32:44.591Z" } ], "analysis_of_failures": [ "The response is concise, and well-structured, but it does not cover the main differences (cell number, genetic similarity, ploidy, and biological role) appropriate to a one-sentence answer." ], "key_improvements": [ { "0": [ "Added a brief qualifier to the sentence to make it more accurate.", "Added a more detailed explanation of the differences between mitosis and meiosis." ] } ], "max_improvement_attempts": 10, "automatic_hallucination_tolerance_levels": null, "custom_hallucination_threshold_values": { "completeness": 0.8, "instruction_adherence": 0.8 }, "capabilities": [ { "capability": "web_search" }, { "capability": "file_search" }, { "capability": "context_awareness" } ], "files": [ { "file_name": "example.pdf", "file_id": "file_xxxxxxxxxxxx", "file_size": 1024, "presigned_url": "https://deeprails.com/files/example.pdf", "presigned_url_expires_at": "2025-11-10T01:32:44.591Z" } ]}
Defend
Retrieve an Event's Details
Use this endpoint to retrieve a specific event of a guardrail workflow
{ "workflow_id": "wkfl_xxxxxxxxxxxx", "event_id": "evt_xxxxxxxxxxxx", "status": "Completed", "improvement_action": "fixit", "threshold_type": "custom", "filtered": false, "improvement_tool_status": "improved", "improved_model_output": "Mitosis creates haploid gametes for reproduction, while meiosis produces identical diploid cells for growth.", "evaluation_result": { "completeness": { "score": 0.89, "rationale": "The sentence is concise, relevant, and well-structured, and it covers the main differences (cell number, genetic similarity, ploidy, and biological role) appropriate to a one-sentence answer. However, it overgeneralizes and makes unqualified universal claims: stating mitosis produces 'diploid' cells and meiosis produces 'four ... gametes' can be inaccurate in some biological contexts (e.g., mitosis in haploid cells or organisms, and oogenesis producing one functional ovum plus polar bodies). To make the sentence both accurate and still compact, add brief qualifiers—for example: 'In diploid organisms, mitosis produces two genetically similar diploid daughter cells for growth and repair, whereas meiosis involves two divisions that typically yield four genetically varied haploid cells (gametes), although in female animals often only one functional gamete results.' This preserves brevity while removing the main factual overgeneralizations.", "threshold": 0.8 }, "instruction_adherence": { "score": 1, "rationale": "The response exemplary meets the explicit instructions by delivering a single, well-formed sentence that clearly contrasts mitosis and meiosis using key distinguishing features (cell number, genetic identity/variation, ploidy, and biological purpose), showing concise and accurate adherence to the prompt.", "threshold": 0.8 } }, "evaluation_history": [ { "attempt": "Initial Evaluation", "evaluation_status": "completed", "improvement_tool_status": "improvement_required", "analysis_of_failures": "The response is concise, and well-structured, but it does not cover the main differences (cell number, genetic similarity, ploidy, and biological role) appropriate to a one-sentence answer.", "key_improvements": [ "Added a brief qualifier to the sentence to make it more accurate.", "Added a more detailed explanation of the differences between mitosis and meiosis." ], "guardrail_metrics": [ "completeness", "instruction_adherence" ], "run_mode": "precision", "model_input": { "user_prompt": "Explain the difference between mitosis and meiosis in one sentence.", "context": [ { "role": "user", "content": "I have an AP Bio exam tomorrow, can you help me study?" }, { "role": "tutor", "content": "Sure, I'll help you study." } ] }, "model_output": "Mitosis creates haploid gametes for reproduction, while meiosis produces identical diploid cells for growth.", "nametag": "Test", "progress": 100, "error_message": null, "evaluation_result": { "completeness": { "score": 0.6, "rationale": "The response is concise, and well-structured, but it does not cover the main differences (cell number, genetic similarity, ploidy, and biological role) appropriate to a one-sentence answer.", "threshold": 0.8 }, "instruction_adherence": { "score": 0.25, "rationale": "The response does not highlight the key differences between mitosis and meiosis.", "threshold": 0.8 } }, "evaluation_total_cost": 0.01, "created_at": "2025-11-10T01:32:44.591Z" }, { "attempt": "Improvement Attempt 1", "evaluation_status": "completed", "improvement_tool_status": "improved", "analysis_of_failures": null, "key_improvements": null, "guardrail_metrics": [ "completeness", "instruction_adherence" ], "run_mode": "precision", "model_input": { "user_prompt": "Explain the difference between mitosis and meiosis in one sentence.", "context": [ { "role": "user", "content": "I have an AP Bio exam tomorrow, can you help me study?" }, { "role": "tutor", "content": "Sure, I'll help you study." } ] }, "model_output": "Mitosis produces two genetically identical diploid cells for growth and tissue repair, whereas meiosis generates four genetically varied haploid gametes for sexual reproduction.", "nametag": "Test", "progress": 100, "error_message": null, "evaluation_result": { "completeness": { "score": 0.89, "rationale": "The sentence is concise, relevant, and well-structured, and it covers the main differences (cell number, genetic similarity, ploidy, and biological role) appropriate to a one-sentence answer. However, it overgeneralizes and makes unqualified universal claims: stating mitosis produces 'diploid' cells and meiosis produces 'four ... gametes' can be inaccurate in some biological contexts (e.g., mitosis in haploid cells or organisms, and oogenesis producing one functional ovum plus polar bodies). To make the sentence both accurate and still compact, add brief qualifiers—for example: 'In diploid organisms, mitosis produces two genetically similar diploid daughter cells for growth and repair, whereas meiosis involves two divisions that typically yield four genetically varied haploid cells (gametes), although in female animals often only one functional gamete results.' This preserves brevity while removing the main factual overgeneralizations.", "threshold": 0.8 }, "instruction_adherence": { "score": 1, "rationale": "The response exemplary meets the explicit instructions by delivering a single, well-formed sentence that clearly contrasts mitosis and meiosis using key distinguishing features (cell number, genetic identity/variation, ploidy, and biological purpose), showing concise and accurate adherence to the prompt.", "threshold": 0.8 } }, "evaluation_total_cost": 0.01, "created_at": "2025-11-10T01:32:44.591Z" } ], "analysis_of_failures": [ "The response is concise, and well-structured, but it does not cover the main differences (cell number, genetic similarity, ploidy, and biological role) appropriate to a one-sentence answer." ], "key_improvements": [ { "0": [ "Added a brief qualifier to the sentence to make it more accurate.", "Added a more detailed explanation of the differences between mitosis and meiosis." ] } ], "max_improvement_attempts": 10, "automatic_hallucination_tolerance_levels": null, "custom_hallucination_threshold_values": { "completeness": 0.8, "instruction_adherence": 0.8 }, "capabilities": [ { "capability": "web_search" }, { "capability": "file_search" }, { "capability": "context_awareness" } ], "files": [ { "file_name": "example.pdf", "file_id": "file_xxxxxxxxxxxx", "file_size": 1024, "presigned_url": "https://deeprails.com/files/example.pdf", "presigned_url_expires_at": "2025-11-10T01:32:44.591Z" } ]}
Workflow events can include a whole series of improvement attempts and corresponding evaluations when the initial evaluation fails one or more metrics. Poll this endpoint for these details, plus the completion status, whether the output needed to be filtered out, the improved_model_output if it needed remediation, and more.
The 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.
The 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.
The analysis_of_failures and key_improvements fields summarize the failings of the model output and the relevant changes of the improvement attempt at each step. These fields are returned for each evaluation, except the final one, and summaries of all of failures and improvements are returned in the analysis_of_failures and key_improvements fields of the event response.
Authorizations
Authorization
string
header
required
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
workflow_id
string
required
The ID of the workflow associated with the event.
event_id
string
required
The ID of the requested workflow event.
Response
Workflow event details retrieved successfully
workflow_id
string
required
Workflow ID associated with the event.
Example:
"wkfl_xxxxxxxxxxxx"
event_id
string
required
A unique workflow event ID.
Example:
"evt_xxxxxxxxxxxx"
status
enum<string>
required
Status of the event.
Available options:
In Progress,
Completed
Example:
"Completed"
improvement_action
enum<string>
required
Type of improvement action used to improve the event.
Available options:
regen,
fixit,
do_nothing
Example:
"fixit"
threshold_type
enum<string>
required
Type of thresholds used to evaluate the event.
Available options:
custom,
automatic
Example:
"custom"
filtered
boolean
required
Whether the event was filtered and requires improvement.
Example:
false
improvement_tool_status
enum<string> | null
required
Status of the improvement tool used to improve the event. improvement_required indicates that the evaluation is complete and the improvement action is needed but is not taking place. improved and improvement_failed indicate when the improvement action concludes, successfully and unsuccessfully, respectively. no_improvement_required means that the first evaluation passed all its metrics!
Available options:
improved,
improvement_failed,
no_improvement_required,
improvement_required
Example:
"improved"
improved_model_output
string
required
Improved model output after improvement tool was applied and each metric passed evaluation.
Example:
"Mitosis creates haploid gametes for reproduction, while meiosis produces identical diploid cells for growth."
evaluation_result
object
required
Evaluation result consisting of average scores and rationales for each of the evaluated guardrail metrics.
Example:
{ "completeness": { "score": 0.89, "rationale": "The sentence is concise, relevant, and well-structured, and it covers the main differences (cell number, genetic similarity, ploidy, and biological role) appropriate to a one-sentence answer. However, it overgeneralizes and makes unqualified universal claims: stating mitosis produces 'diploid' cells and meiosis produces 'four ... gametes' can be inaccurate in some biological contexts (e.g., mitosis in haploid cells or organisms, and oogenesis producing one functional ovum plus polar bodies). To make the sentence both accurate and still compact, add brief qualifiers—for example: 'In diploid organisms, mitosis produces two genetically similar diploid daughter cells for growth and repair, whereas meiosis involves two divisions that typically yield four genetically varied haploid cells (gametes), although in female animals often only one functional gamete results.' This preserves brevity while removing the main factual overgeneralizations.", "threshold": 0.8 }, "instruction_adherence": { "score": 1, "rationale": "The response exemplary meets the explicit instructions by delivering a single, well-formed sentence that clearly contrasts mitosis and meiosis using key distinguishing features (cell number, genetic identity/variation, ploidy, and biological purpose), showing concise and accurate adherence to the prompt.", "threshold": 0.8 } }
evaluation_history
object[]
required
History of evaluations for the event.
Show child attributes
Example:
[ { "attempt": "Initial Evaluation", "evaluation_status": "completed", "improvement_tool_status": "improvement_required", "analysis_of_failures": "The response is concise, and well-structured, but it does not cover the main differences (cell number, genetic similarity, ploidy, and biological role) appropriate to a one-sentence answer.", "key_improvements": [ "Added a brief qualifier to the sentence to make it more accurate.", "Added a more detailed explanation of the differences between mitosis and meiosis." ], "guardrail_metrics": ["completeness", "instruction_adherence"], "run_mode": "precision", "model_input": { "user_prompt": "Explain the difference between mitosis and meiosis in one sentence.", "context": [ { "role": "user", "content": "I have an AP Bio exam tomorrow, can you help me study?" }, { "role": "tutor", "content": "Sure, I'll help you study." } ] }, "model_output": "Mitosis creates haploid gametes for reproduction, while meiosis produces identical diploid cells for growth.", "nametag": "Test", "progress": 100, "error_message": null, "evaluation_result": { "completeness": { "score": 0.6, "rationale": "The response is concise, and well-structured, but it does not cover the main differences (cell number, genetic similarity, ploidy, and biological role) appropriate to a one-sentence answer.", "threshold": 0.8 }, "instruction_adherence": { "score": 0.25, "rationale": "The response does not highlight the key differences between mitosis and meiosis.", "threshold": 0.8 } }, "evaluation_total_cost": 0.01, "created_at": "2025-11-10T01:32:44.591Z" }, { "attempt": "Improvement Attempt 1", "evaluation_status": "completed", "improvement_tool_status": "improved", "analysis_of_failures": null, "key_improvements": null, "guardrail_metrics": ["completeness", "instruction_adherence"], "run_mode": "precision", "model_input": { "user_prompt": "Explain the difference between mitosis and meiosis in one sentence.", "context": [ { "role": "user", "content": "I have an AP Bio exam tomorrow, can you help me study?" }, { "role": "tutor", "content": "Sure, I'll help you study." } ] }, "model_output": "Mitosis produces two genetically identical diploid cells for growth and tissue repair, whereas meiosis generates four genetically varied haploid gametes for sexual reproduction.", "nametag": "Test", "progress": 100, "error_message": null, "evaluation_result": { "completeness": { "score": 0.89, "rationale": "The sentence is concise, relevant, and well-structured, and it covers the main differences (cell number, genetic similarity, ploidy, and biological role) appropriate to a one-sentence answer. However, it overgeneralizes and makes unqualified universal claims: stating mitosis produces 'diploid' cells and meiosis produces 'four ... gametes' can be inaccurate in some biological contexts (e.g., mitosis in haploid cells or organisms, and oogenesis producing one functional ovum plus polar bodies). To make the sentence both accurate and still compact, add brief qualifiers—for example: 'In diploid organisms, mitosis produces two genetically similar diploid daughter cells for growth and repair, whereas meiosis involves two divisions that typically yield four genetically varied haploid cells (gametes), although in female animals often only one functional gamete results.' This preserves brevity while removing the main factual overgeneralizations.", "threshold": 0.8 }, "instruction_adherence": { "score": 1, "rationale": "The response exemplary meets the explicit instructions by delivering a single, well-formed sentence that clearly contrasts mitosis and meiosis using key distinguishing features (cell number, genetic identity/variation, ploidy, and biological purpose), showing concise and accurate adherence to the prompt.", "threshold": 0.8 } }, "evaluation_total_cost": 0.01, "created_at": "2025-11-10T01:32:44.591Z" } ]
analysis_of_failures
string[]
required
key_improvements
object[]
required
Example:
[ { "0": [ "Added a brief qualifier to the sentence to make it more accurate.", "Added a more detailed explanation of the differences between mitosis and meiosis." ] } ]
max_improvement_attempts
integer
The maximum number of improvement attempts to be applied to one event before it is considered failed.
Example:
10
automatic_hallucination_tolerance_levels
object
Mapping of guardrail metric names to tolerance values. Values are strings (low, medium, high) representing automatic tolerance levels.
Show child attributes
Example:
null
custom_hallucination_threshold_values
object
Mapping of guardrail metric names to threshold values. Values are floating point numbers (0.0-1.0) representing custom thresholds.
List of files available to the event, if any. Will only be present if file_search is enabled.
Show child attributes
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"DeepRails","colors":{"primary":"#f2ca46","light":"#f2ca46","dark":"#c4990d"},"logo":{"light":"https://mintcdn.com/deeprails-479f3a7b/bbwR2lswB0faqCU8/logo/deeprails-gold.png?fit=max\u0026auto=format\u0026n=bbwR2lswB0faqCU8\u0026q=85\u0026s=f30c47f94d9c83f7345f61cf0bafdcb1","dark":"https://mintcdn.com/deeprails-479f3a7b/bbwR2lswB0faqCU8/logo/deeprails-gold.png?fit=max\u0026auto=format\u0026n=bbwR2lswB0faqCU8\u0026q=85\u0026s=f30c47f94d9c83f7345f61cf0bafdcb1"},"favicon":"https://mintcdn.com/deeprails-479f3a7b/bbwR2lswB0faqCU8/images/favicon-32x32.png?fit=max\u0026auto=format\u0026n=bbwR2lswB0faqCU8\u0026q=85\u0026s=2c44930664b6ca64cf1cff69a262631f","appearance":{"default":"dark","strict":true},"background":{"decoration":"gradient"},"navbar":{"links":[{"href":"https://www.deeprails.com/","label":"DeepRails Website"}],"primary":{"type":"button","label":"API Console Login","href":"https://console.deeprails.com/login"}},"footer":{"socials":{"linkedin":"https://linkedin.com/company/deeprails"}},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Python SDK","icon":"python","href":"https://pypi.org/project/deeprails"},{"anchor":"TypeScript SDK","icon":"square-js","href":"https://www.npmjs.com/package/deeprails/"},{"anchor":"Ruby SDK","icon":"gem","href":"https://rubygems.org/gems/deeprails"},{"anchor":"Go SDK","icon":"golang","href":"https://pkg.go.dev/github.com/deeprails/deeprails-go-sdk"},{"anchor":"Contact","icon":"envelope","href":"mailto:support@deeprails.ai"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"deeprails-479f3a7b","hasAudioNarration":false,"actualSubdomain":"deeprails-479f3a7b","customDomains":["docs.deeprails.com"],"gitSource":{"type":"github","owner":"deeprails","repo":"docs2","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"","_id":"6b10b7099ffae5051c40118f"},"entitlements":{},"buildId":"6ae395a7b0143684c1ccab8b","clientVersion":"0.0.4453","searchFilterCounts":[{"language":"default","tag":"Documentation","count":17},{"language":"default","tag":"API Reference","count":12},{"language":"default","tag":"API Documentation","count":12},{"language":"default","tag":"Guardrail Metrics","count":7},{"language":"default","tag":"Defend","count":6},{"language":"default","tag":"Monitor","count":5},{"language":"default","tag":"Defend API","count":3},{"language":"default","tag":"Evaluation Engine","count":3},{"language":"default","tag":"Get Started","count":2},{"language":"default","tag":"Monitor API","count":2}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":".sidebar>.section{margin-bottom:0px}.sidebar .page{margin-bottom:0px}.sidebar .page a{padding:0px 0px}:target,h2[id]:target,h3[id]:target,h4[id]:target,h5[id]:target,div[id]:target{position:relative;background:linear-gradient(to left, #f2ca46, #2b2a2a00);animation:highlight-section 3s ease-in-out;scroll-margin-top:80px;padding:0.2rem;border-radius:8px;border-left:4px solid #f2ca46}@keyframes highlight-section{0%{background:linear-gradient(to left, #f2ca46, #2b2a2a00)}50%{background:linear-gradient(to left, #f2ca46, #2b2a2a00)}100%{background:linear-gradient(to left, #f2ca46, #2b2a2a00)}}.tight-section>h3{margin-bottom:0.25rem}table,.markdown table,.prose table,.mdx table{table-layout:fixed!important;width:800px!important;max-width:100%!important;text-align:center!important}table th,.markdown table th,.prose table th,.mdx table th{text-align:center!important}table th:first-child,table td:first-child{width:200px!important}table th:nth-child(2),table td:nth-child(2){width:100px!important}table th:nth-child(3),table td:nth-child(3){width:500px!important}[data-page=\"auto-tables\"] table,.run-modes-table{table-layout:auto!important;width:auto!important;max-width:none!important;text-align:left!important}[data-page=\"auto-tables\"] table th,[data-page=\"auto-tables\"] table td,.run-modes-table th,.run-modes-table td{width:auto!important;text-align:left!important;white-space:nowrap;padding:0.5rem 0.75rem!important}.run-modes-table td:nth-child(3),.run-modes-table td:nth-child(4),.run-modes-table td:nth-child(5),.run-modes-table td:nth-child(6),.run-modes-table th:nth-child(3),.run-modes-table th:nth-child(4),.run-modes-table th:nth-child(5),.run-modes-table th:nth-child(6){text-align:center!important;letter-spacing:1px}.competitor-table{table-layout:fixed!important;width:100%!important;max-width:100%!important;text-align:center!important}.competitor-table th,.competitor-table td{text-align:center!important;vertical-align:top;white-space:normal}.competitor-table th:nth-child(1),.competitor-table td:nth-child(1){width:18%!important}.competitor-table th:nth-child(2),.competitor-table td:nth-child(2){width:18%!important}.competitor-table th:nth-child(3),.competitor-table td:nth-child(3){width:24%!important}.competitor-table th:nth-child(4),.competitor-table td:nth-child(4){width:40%!important}.docs-auto-table{table-layout:auto!important;width:100%!important;max-width:100%!important;text-align:left!important}.docs-auto-table th,.docs-auto-table td{width:auto!important;text-align:left!important;vertical-align:top;white-space:normal}[data-page=\"defend-details\"] h2{margin-top:1.5rem;margin-bottom:0.45rem;font-weight:750}[data-page=\"defend-details\"] h3{margin-top:1rem;margin-bottom:0.35rem;font-weight:700}[data-page=\"defend-details\"] p{margin-top:0.45rem;margin-bottom:0.45rem;line-height:1.55}[data-page=\"defend-details\"] ul,[data-page=\"defend-details\"] ol{margin-top:0.4rem;margin-bottom:0.75rem}[data-page=\"defend-details\"] li{margin-bottom:0.2rem}[data-page=\"defend-details\"] hr{margin:1rem 0}[data-page=\"defend-details\"] strong{font-weight:700}[data-page=\"defend-details\"] table{table-layout:auto!important;width:auto!important;max-width:100%!important;text-align:left!important}[data-page=\"defend-details\"] table th,[data-page=\"defend-details\"] table td{width:auto!important;text-align:left!important;vertical-align:top;white-space:normal;padding:0.5rem 0.75rem!important}"}]}
{"page":{"pagePath":"api-reference/defend/retrieve-an-events-details","slug":"/api-reference/defend/retrieve-an-events-details","pageMetadata":{"title":"Retrieve an Event's Details","description":"Use this endpoint to retrieve a specific event of a guardrail workflow\n","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /defend/{workflow_id}/events/{event_id}","href":"/api-reference/defend/retrieve-an-events-details","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Use this endpoint to retrieve a specific event of a guardrail workflow\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,p:`p`,..._provideComponents(),...props.components};return _jsxs(_components.p,{children:[`Workflow events can include a whole series of improvement attempts and corresponding evaluations when the initial evaluation fails one or more metrics. Poll this endpoint for these details, plus the completion `,_jsx(_components.code,{children:`status`}),`, whether the output needed to be `,_jsx(_components.code,{children:`filtered`}),` out, the `,_jsx(_components.code,{children:`improved_model_output`}),` if it needed remediation, and more.`,_jsx(`br`,{}),_jsx(`br`,{}),`The `,_jsx(_components.code,{children:`filtered`}),` field is set to `,_jsx(_components.code,{children:`true`}),` when the event fails one or more metrics on the most recent evaluation and is set to `,_jsx(_components.code,{children:`false`}),` if all metric evaluations were above their thresholds. If `,_jsx(_components.code,{children:`filtered`}),` is `,_jsx(_components.code,{children:`true`}),`, then an improvement attempt will begin immediately after the initial evaluation concludes.`,_jsx(`br`,{}),_jsx(`br`,{}),`The `,_jsx(_components.code,{children:`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.`,_jsx(`br`,{}),_jsx(`br`,{}),`The `,_jsx(_components.code,{children:`analysis_of_failures`}),` and `,_jsx(_components.code,{children:`key_improvements`}),` fields summarize the failings of the model output and the relevant changes of the improvement attempt at each step. These fields are returned for each evaluation, except the final one, and summaries of all of failures and improvements are returned in the `,_jsx(_components.code,{children:`analysis_of_failures`}),` and `,_jsx(_components.code,{children:`key_improvements`}),` fields of the event response.`]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Retrieve an Event's Details","description":"Use this endpoint to retrieve a specific event of a guardrail workflow\n","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /defend/{workflow_id}/events/{event_id}","href":"/api-reference/defend/retrieve-an-events-details","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["Defend"],"summary":"Retrieve an Event's Details","description":"Use this endpoint to retrieve a specific event of a guardrail workflow\n","x-mint":{"content":"Workflow events can include a whole series of improvement attempts and corresponding evaluations when the initial evaluation fails one or more metrics. Poll this endpoint for these details, plus the completion `status`, whether the output needed to be `filtered` out, the `improved_model_output` if it needed remediation, and more.\u003cbr />\u003cbr />The `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.\u003cbr />\u003cbr />The `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.\u003cbr />\u003cbr />The `analysis_of_failures` and `key_improvements` fields summarize the failings of the model output and the relevant changes of the improvement attempt at each step. These fields are returned for each evaluation, except the final one, and summaries of all of failures and improvements are returned in the `analysis_of_failures` and `key_improvements` fields of the event response."},"x-codeSamples":[{"lang":"python","label":"Retrieve an Event's Details","source":"from deeprails import DeepRails\n\nDEEPRAILS_API_KEY = \"YOUR_API_KEY\"\n\nclient = DeepRails(\n api_key=DEEPRAILS_API_KEY,\n)\n\nevent_response = client.defend.retrieve_event(\n workflow_id=\"wkfl_xxxxxxxxxxxx\",\n event_id=\"evt_xxxxxxxxxxxx\",\n)\nprint(event_response)\n - lang: python\n"},{"lang":"python","label":"Poll a Workflow Event for Completion","source":"from deeprails import DeepRails\n\nclient = DeepRails(\n api_key=DEEPRAILS_API_KEY,\n)\n\nevent_status = \"\"\nevent_response = None\nwhile event_status != \"Completed\":\n event_response = client.defend.retrieve_event(\n workflow_id=\"wkfl_xxxxxxxxxxxx\",\n event_id=\"evt_xxxxxxxxxxxx\",\n )\n event_status = event_response.status\n\ntool_status = event_response.improvement_tool_status\nif tool_status == \"improved\":\n print(f\"Improved model output: {event_response.improved_model_output}\")\nelif tool_status == \"improvement_failed\":\n print(f\"Improvement action failed to improve output\")\nelif tool_status == \"no_improvement_required\":\n print(f\"Improvement not needed!\")\n"}],"security":["2d5c66e2-4e52-4bf3-9680-65b6932bcb01"],"parameters":["26846eb7-5416-4615-91c8-07e626d1d0a4","642f28ae-7855-42bb-8bd8-1929e7731c30"],"responses":{"200":"2d7c059f-2fb6-46bf-ad81-4cbe49ba5a5a","401":"51227cc1-049f-4938-92f7-336ffd4d6998","404":"d8871194-eb6a-4029-8e67-23061230e946"},"method":"get","type":"path","servers":["354ef262-08b5-467e-b0b8-a640a41a5637"],"path":"/defend/{workflow_id}/events/{event_id}","baseUrlOptions":["https://api.deeprails.com"],"title":"Retrieve an Event's Details","codeSamples":[{"label":"Retrieve an Event's Details","lang":"python","source":"from deeprails import DeepRails\n\nDEEPRAILS_API_KEY = \"YOUR_API_KEY\"\n\nclient = DeepRails(\n api_key=DEEPRAILS_API_KEY,\n)\n\nevent_response = client.defend.retrieve_event(\n workflow_id=\"wkfl_xxxxxxxxxxxx\",\n event_id=\"evt_xxxxxxxxxxxx\",\n)\nprint(event_response)\n - lang: python\n"},{"label":"Poll a Workflow Event for Completion","lang":"python","source":"from deeprails import DeepRails\n\nclient = DeepRails(\n api_key=DEEPRAILS_API_KEY,\n)\n\nevent_status = \"\"\nevent_response = None\nwhile event_status != \"Completed\":\n event_response = client.defend.retrieve_event(\n workflow_id=\"wkfl_xxxxxxxxxxxx\",\n event_id=\"evt_xxxxxxxxxxxx\",\n )\n event_status = event_response.status\n\ntool_status = event_response.improvement_tool_status\nif tool_status == \"improved\":\n print(f\"Improved model output: {event_response.improved_model_output}\")\nelif tool_status == \"improvement_failed\":\n print(f\"Improvement action failed to improve output\")\nelif tool_status == \"no_improvement_required\":\n print(f\"Improvement not needed!\")\n"}],"requiredOnlyExamples":false,"requestExampleType":"codeSamples","responseExampleType":"generated"},"dependencies":{"parameters":{"26846eb7-5416-4615-91c8-07e626d1d0a4":{"name":"workflow_id","in":"path","description":"The ID of the workflow associated with the event.","required":true,"schema":{"type":"string","isRequired":true,"description":"The ID of the workflow associated with the event.","uniqueKey":"","typeLabel":"string"}},"642f28ae-7855-42bb-8bd8-1929e7731c30":{"name":"event_id","in":"path","description":"The ID of the requested workflow event.","required":true,"schema":{"type":"string","isRequired":true,"description":"The ID of the requested workflow event.","uniqueKey":"","typeLabel":"string"}}},"responses":{"2d7c059f-2fb6-46bf-ad81-4cbe49ba5a5a":{"description":"Workflow event details retrieved successfully","content":{"application/json":{"schema":{"type":"object","properties":{"workflow_id":{"type":"string","description":"Workflow ID associated with the event.","example":"wkfl_xxxxxxxxxxxx","isRequired":true,"uniqueKey":"workflow_id","typeLabel":"string"},"event_id":{"type":"string","description":"A unique workflow event ID.","example":"evt_xxxxxxxxxxxx","isRequired":true,"uniqueKey":"event_id","typeLabel":"string"},"status":{"type":"string","description":"Status of the event.","example":"Completed","enum":["In Progress","Completed"],"isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"improvement_action":{"type":"string","description":"Type of improvement action used to improve the event.","example":"fixit","enum":["regen","fixit","do_nothing"],"isRequired":true,"uniqueKey":"improvement_action","typeLabel":"enum\u003cstring>"},"threshold_type":{"type":"string","enum":["custom","automatic"],"description":"Type of thresholds used to evaluate the event.","example":"custom","isRequired":true,"uniqueKey":"threshold_type","typeLabel":"enum\u003cstring>"},"filtered":{"type":"boolean","description":"Whether the event was filtered and requires improvement.","example":false,"isRequired":true,"uniqueKey":"filtered","typeLabel":"boolean"},"improvement_tool_status":{"oneOf":[{"type":"string","description":"Status of the improvement tool used to improve the event. `improvement_required` indicates that the evaluation is complete and the improvement action is needed but is not taking place. `improved` and `improvement_failed` indicate when the improvement action concludes, successfully and unsuccessfully, respectively. `no_improvement_required` means that the first evaluation passed all its metrics!","example":"improved","enum":["improved","improvement_failed","no_improvement_required","improvement_required"],"isRequired":true,"uniqueKey":"improvement_tool_status.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"Status of the improvement tool used to improve the event. `improvement_required` indicates that the evaluation is complete and the improvement action is needed but is not taking place. `improved` and `improvement_failed` indicate when the improvement action concludes, successfully and unsuccessfully, respectively. `no_improvement_required` means that the first evaluation passed all its metrics!","example":"improved","enum":["improved","improvement_failed","no_improvement_required","improvement_required"],"isRequired":true,"uniqueKey":"improvement_tool_status.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"improvement_tool_status","typeLabel":"enum\u003cstring> | null"},"improved_model_output":{"type":"string","description":"Improved model output after improvement tool was applied and each metric passed evaluation.","example":"Mitosis creates haploid gametes for reproduction, while meiosis produces identical diploid cells for growth.","isRequired":true,"uniqueKey":"improved_model_output","typeLabel":"string"},"evaluation_result":{"type":"object","description":"Evaluation result consisting of average scores and rationales for each of the evaluated guardrail metrics.","additionalProperties":true,"example":{"completeness":{"score":0.89,"rationale":"The sentence is concise, relevant, and well-structured, and it covers the main differences (cell number, genetic similarity, ploidy, and biological role) appropriate to a one-sentence answer. However, it overgeneralizes and makes unqualified universal claims: stating mitosis produces 'diploid' cells and meiosis produces 'four ... gametes' can be inaccurate in some biological contexts (e.g., mitosis in haploid cells or organisms, and oogenesis producing one functional ovum plus polar bodies). To make the sentence both accurate and still compact, add brief qualifiers—for example: 'In diploid organisms, mitosis produces two genetically similar diploid daughter cells for growth and repair, whereas meiosis involves two divisions that typically yield four genetically varied haploid cells (gametes), although in female animals often only one functional gamete results.' This preserves brevity while removing the main factual overgeneralizations.","threshold":0.8},"instruction_adherence":{"score":1,"rationale":"The response exemplary meets the explicit instructions by delivering a single, well-formed sentence that clearly contrasts mitosis and meiosis using key distinguishing features (cell number, genetic identity/variation, ploidy, and biological purpose), showing concise and accurate adherence to the prompt.","threshold":0.8}},"isRequired":true,"uniqueKey":"evaluation_result","typeLabel":"object"},"evaluation_history":{"type":"array","description":"History of evaluations for the event.","items":{"type":"object","properties":{"attempt":{"type":"string","example":"Initial Evaluation","uniqueKey":"evaluation_history.items.[INDEX].attempt","typeLabel":"string"},"evaluation_status":{"type":"string","example":"completed","uniqueKey":"evaluation_history.items.[INDEX].evaluation_status","typeLabel":"string"},"improvement_tool_status":{"type":"string","example":"improvement_required","enum":["improved","improvement_failed","no_improvement_required","improvement_required"],"uniqueKey":"evaluation_history.items.[INDEX].improvement_tool_status","typeLabel":"enum\u003cstring>"},"analysis_of_failures":{"type":"string","example":"The response is concise, and well-structured, but it does not cover the main differences (cell number, genetic similarity, ploidy, and biological role) appropriate to a one-sentence answer.","uniqueKey":"evaluation_history.items.[INDEX].analysis_of_failures","typeLabel":"string"},"key_improvements":{"type":"array","items":{"type":"string","uniqueKey":"evaluation_history.items.[INDEX].key_improvements.items.[INDEX]","typeLabel":"string"},"example":["Added a brief qualifier to the sentence to make it more accurate.","Added a more detailed explanation of the differences between mitosis and meiosis."],"uniqueKey":"evaluation_history.items.[INDEX].key_improvements","typeLabel":"string[]"},"guardrail_metrics":{"type":"array","items":{"type":"string","uniqueKey":"evaluation_history.items.[INDEX].guardrail_metrics.items.[INDEX]","typeLabel":"string"},"example":["completeness","instruction_adherence"],"uniqueKey":"evaluation_history.items.[INDEX].guardrail_metrics","typeLabel":"string[]"},"run_mode":{"type":"string","example":"precision","uniqueKey":"evaluation_history.items.[INDEX].run_mode","typeLabel":"string"},"model_input":{"type":"object","additionalProperties":true,"example":{"system_prompt":"You are a helpful tutor specializing in AP science classes.","user_prompt":"Explain the difference between mitosis and meiosis in one sentence.","context":[{"role":"user","content":"I have an AP Bio exam tomorrow, can you help me study?"},{"role":"tutor","content":"Sure, I'll help you study."}]},"uniqueKey":"evaluation_history.items.[INDEX].model_input","typeLabel":"object"},"model_output":{"type":"string","example":"Mitosis creates haploid gametes for reproduction, while meiosis produces identical diploid cells for growth.","uniqueKey":"evaluation_history.items.[INDEX].model_output","typeLabel":"string"},"nametag":{"type":"string","example":"Test Event","uniqueKey":"evaluation_history.items.[INDEX].nametag","typeLabel":"string"},"progress":{"type":"integer","example":100,"uniqueKey":"evaluation_history.items.[INDEX].progress","typeLabel":"integer"},"error_message":{"type":"string","example":null,"uniqueKey":"evaluation_history.items.[INDEX].error_message","typeLabel":"string"},"evaluation_result":{"type":"object","additionalProperties":true,"example":{"correctness":{"score":1,"rationale":"The response correctly and concisely summarizes core features of franchise agreements.","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}},"uniqueKey":"evaluation_history.items.[INDEX].evaluation_result","typeLabel":"object"},"evaluation_total_cost":{"type":"number","format":"float","example":0.03,"uniqueKey":"evaluation_history.items.[INDEX].evaluation_total_cost","typeLabel":"number\u003cfloat>"},"created_at":{"type":"string","format":"date-time","example":"2025-01-15T10:30:00Z","uniqueKey":"evaluation_history.items.[INDEX].created_at","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"evaluation_history.items.[INDEX]","typeLabel":"object"},"example":[{"attempt":"Initial Evaluation","evaluation_status":"completed","improvement_tool_status":"improvement_required","analysis_of_failures":"The response is concise, and well-structured, but it does not cover the main differences (cell number, genetic similarity, ploidy, and biological role) appropriate to a one-sentence answer.","key_improvements":["Added a brief qualifier to the sentence to make it more accurate.","Added a more detailed explanation of the differences between mitosis and meiosis."],"guardrail_metrics":["completeness","instruction_adherence"],"run_mode":"precision","model_input":{"user_prompt":"Explain the difference between mitosis and meiosis in one sentence.","context":[{"role":"user","content":"I have an AP Bio exam tomorrow, can you help me study?"},{"role":"tutor","content":"Sure, I'll help you study."}]},"model_output":"Mitosis creates haploid gametes for reproduction, while meiosis produces identical diploid cells for growth.","nametag":"Test","progress":100,"error_message":null,"evaluation_result":{"completeness":{"score":0.6,"rationale":"The response is concise, and well-structured, but it does not cover the main differences (cell number, genetic similarity, ploidy, and biological role) appropriate to a one-sentence answer.","threshold":0.8},"instruction_adherence":{"score":0.25,"rationale":"The response does not highlight the key differences between mitosis and meiosis.","threshold":0.8}},"evaluation_total_cost":0.01,"created_at":"2025-11-10T01:32:44.591Z"},{"attempt":"Improvement Attempt 1","evaluation_status":"completed","improvement_tool_status":"improved","analysis_of_failures":null,"key_improvements":null,"guardrail_metrics":["completeness","instruction_adherence"],"run_mode":"precision","model_input":{"user_prompt":"Explain the difference between mitosis and meiosis in one sentence.","context":[{"role":"user","content":"I have an AP Bio exam tomorrow, can you help me study?"},{"role":"tutor","content":"Sure, I'll help you study."}]},"model_output":"Mitosis produces two genetically identical diploid cells for growth and tissue repair, whereas meiosis generates four genetically varied haploid gametes for sexual reproduction.","nametag":"Test","progress":100,"error_message":null,"evaluation_result":{"completeness":{"score":0.89,"rationale":"The sentence is concise, relevant, and well-structured, and it covers the main differences (cell number, genetic similarity, ploidy, and biological role) appropriate to a one-sentence answer. However, it overgeneralizes and makes unqualified universal claims: stating mitosis produces 'diploid' cells and meiosis produces 'four ... gametes' can be inaccurate in some biological contexts (e.g., mitosis in haploid cells or organisms, and oogenesis producing one functional ovum plus polar bodies). To make the sentence both accurate and still compact, add brief qualifiers—for example: 'In diploid organisms, mitosis produces two genetically similar diploid daughter cells for growth and repair, whereas meiosis involves two divisions that typically yield four genetically varied haploid cells (gametes), although in female animals often only one functional gamete results.' This preserves brevity while removing the main factual overgeneralizations.","threshold":0.8},"instruction_adherence":{"score":1,"rationale":"The response exemplary meets the explicit instructions by delivering a single, well-formed sentence that clearly contrasts mitosis and meiosis using key distinguishing features (cell number, genetic identity/variation, ploidy, and biological purpose), showing concise and accurate adherence to the prompt.","threshold":0.8}},"evaluation_total_cost":0.01,"created_at":"2025-11-10T01:32:44.591Z"}],"isRequired":true,"uniqueKey":"evaluation_history","typeLabel":"object[]"},"analysis_of_failures":{"type":"array","items":{"type":"string","example":"The response is concise, and well-structured, but it does not cover the main differences (cell number, genetic similarity, ploidy, and biological role) appropriate to a one-sentence answer.","uniqueKey":"analysis_of_failures.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"analysis_of_failures","typeLabel":"string[]"},"key_improvements":{"type":"array","items":{"type":"object","uniqueKey":"key_improvements.items.[INDEX]","typeLabel":"object"},"example":[{"0":["Added a brief qualifier to the sentence to make it more accurate.","Added a more detailed explanation of the differences between mitosis and meiosis."]}],"isRequired":true,"uniqueKey":"key_improvements","typeLabel":"object[]"},"max_improvement_attempts":{"type":"integer","description":"The maximum number of improvement attempts to be applied to one event before it is considered failed.","example":10,"uniqueKey":"max_improvement_attempts","typeLabel":"integer"},"automatic_hallucination_tolerance_levels":{"type":"object","description":"Mapping of guardrail metric names to tolerance values. Values are strings (`low`, `medium`, `high`) representing automatic tolerance levels.","example":null,"additionalProperties":{"type":"string","enum":["low","medium","high"],"uniqueKey":"automatic_hallucination_tolerance_levels.additionalProperties","typeLabel":"enum\u003cstring>"},"uniqueKey":"automatic_hallucination_tolerance_levels","typeLabel":"object"},"custom_hallucination_threshold_values":{"type":"object","description":"Mapping of guardrail metric names to threshold values. Values are floating point numbers (0.0-1.0) representing custom thresholds.","example":{"completeness":0.8,"instruction_adherence":0.8},"additionalProperties":{"type":"number","format":"float","minimum":0,"maximum":1,"uniqueKey":"custom_hallucination_threshold_values.additionalProperties","typeLabel":"number\u003cfloat>"},"uniqueKey":"custom_hallucination_threshold_values","typeLabel":"object"},"capabilities":{"type":"array","description":"Extended AI capabilities available to the event, if any. Can be `web_search`, `file_search`, and/or `context_awareness`.","items":{"type":"object","properties":{"capability":{"type":"string","uniqueKey":"capabilities.items.[INDEX].capability","typeLabel":"string"}},"uniqueKey":"capabilities.items.[INDEX]","typeLabel":"object"},"example":[{"capability":"web_search"},{"capability":"file_search"},{"capability":"context_awareness"}],"uniqueKey":"capabilities","typeLabel":"object[]"},"files":{"type":"array","description":"List of files available to the event, if any. Will only be present if `file_search` is enabled.","items":{"type":"object","properties":{"file_name":{"type":"string","example":"example.pdf","uniqueKey":"files.items.[INDEX].file_name","typeLabel":"string"},"file_id":{"type":"string","example":"file_xxxxxxxxxxxx","uniqueKey":"files.items.[INDEX].file_id","typeLabel":"string"},"file_size":{"type":"integer","example":1024,"uniqueKey":"files.items.[INDEX].file_size","typeLabel":"integer"},"presigned_url":{"type":"string","example":"https://deeprails.com/files/example.pdf","uniqueKey":"files.items.[INDEX].presigned_url","typeLabel":"string"},"presigned_url_expires_at":{"type":"string","format":"date-time","example":"2025-11-10T01:32:44.591Z","uniqueKey":"files.items.[INDEX].presigned_url_expires_at","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"files.items.[INDEX]","typeLabel":"object"},"uniqueKey":"files","typeLabel":"object[]"}},"required":["event_id","workflow_id","status","improvement_action","threshold_type","filtered","improvement_tool_status","improved_model_output","evaluation_result","evaluation_history","analysis_of_failures","key_improvements"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"workflow_id":"wkfl_xxxxxxxxxxxx","event_id":"evt_xxxxxxxxxxxx","status":"Completed","improvement_action":"fixit","threshold_type":"custom","filtered":false,"improvement_tool_status":"improved","improved_model_output":"Mitosis creates haploid gametes for reproduction, while meiosis produces identical diploid cells for growth.","evaluation_result":{"completeness":{"score":0.89,"rationale":"The sentence is concise, relevant, and well-structured, and it covers the main differences (cell number, genetic similarity, ploidy, and biological role) appropriate to a one-sentence answer. However, it overgeneralizes and makes unqualified universal claims: stating mitosis produces 'diploid' cells and meiosis produces 'four ... gametes' can be inaccurate in some biological contexts (e.g., mitosis in haploid cells or organisms, and oogenesis producing one functional ovum plus polar bodies). To make the sentence both accurate and still compact, add brief qualifiers—for example: 'In diploid organisms, mitosis produces two genetically similar diploid daughter cells for growth and repair, whereas meiosis involves two divisions that typically yield four genetically varied haploid cells (gametes), although in female animals often only one functional gamete results.' This preserves brevity while removing the main factual overgeneralizations.","threshold":0.8},"instruction_adherence":{"score":1,"rationale":"The response exemplary meets the explicit instructions by delivering a single, well-formed sentence that clearly contrasts mitosis and meiosis using key distinguishing features (cell number, genetic identity/variation, ploidy, and biological purpose), showing concise and accurate adherence to the prompt.","threshold":0.8}},"evaluation_history":[{"attempt":"Initial Evaluation","evaluation_status":"completed","improvement_tool_status":"improvement_required","analysis_of_failures":"The response is concise, and well-structured, but it does not cover the main differences (cell number, genetic similarity, ploidy, and biological role) appropriate to a one-sentence answer.","key_improvements":["Added a brief qualifier to the sentence to make it more accurate.","Added a more detailed explanation of the differences between mitosis and meiosis."],"guardrail_metrics":["completeness","instruction_adherence"],"run_mode":"precision","model_input":{"user_prompt":"Explain the difference between mitosis and meiosis in one sentence.","context":[{"role":"user","content":"I have an AP Bio exam tomorrow, can you help me study?"},{"role":"tutor","content":"Sure, I'll help you study."}]},"model_output":"Mitosis creates haploid gametes for reproduction, while meiosis produces identical diploid cells for growth.","nametag":"Test","progress":100,"error_message":null,"evaluation_result":{"completeness":{"score":0.6,"rationale":"The response is concise, and well-structured, but it does not cover the main differences (cell number, genetic similarity, ploidy, and biological role) appropriate to a one-sentence answer.","threshold":0.8},"instruction_adherence":{"score":0.25,"rationale":"The response does not highlight the key differences between mitosis and meiosis.","threshold":0.8}},"evaluation_total_cost":0.01,"created_at":"2025-11-10T01:32:44.591Z"},{"attempt":"Improvement Attempt 1","evaluation_status":"completed","improvement_tool_status":"improved","analysis_of_failures":null,"key_improvements":null,"guardrail_metrics":["completeness","instruction_adherence"],"run_mode":"precision","model_input":{"user_prompt":"Explain the difference between mitosis and meiosis in one sentence.","context":[{"role":"user","content":"I have an AP Bio exam tomorrow, can you help me study?"},{"role":"tutor","content":"Sure, I'll help you study."}]},"model_output":"Mitosis produces two genetically identical diploid cells for growth and tissue repair, whereas meiosis generates four genetically varied haploid gametes for sexual reproduction.","nametag":"Test","progress":100,"error_message":null,"evaluation_result":{"completeness":{"score":0.89,"rationale":"The sentence is concise, relevant, and well-structured, and it covers the main differences (cell number, genetic similarity, ploidy, and biological role) appropriate to a one-sentence answer. However, it overgeneralizes and makes unqualified universal claims: stating mitosis produces 'diploid' cells and meiosis produces 'four ... gametes' can be inaccurate in some biological contexts (e.g., mitosis in haploid cells or organisms, and oogenesis producing one functional ovum plus polar bodies). To make the sentence both accurate and still compact, add brief qualifiers—for example: 'In diploid organisms, mitosis produces two genetically similar diploid daughter cells for growth and repair, whereas meiosis involves two divisions that typically yield four genetically varied haploid cells (gametes), although in female animals often only one functional gamete results.' This preserves brevity while removing the main factual overgeneralizations.","threshold":0.8},"instruction_adherence":{"score":1,"rationale":"The response exemplary meets the explicit instructions by delivering a single, well-formed sentence that clearly contrasts mitosis and meiosis using key distinguishing features (cell number, genetic identity/variation, ploidy, and biological purpose), showing concise and accurate adherence to the prompt.","threshold":0.8}},"evaluation_total_cost":0.01,"created_at":"2025-11-10T01:32:44.591Z"}],"analysis_of_failures":["The response is concise, and well-structured, but it does not cover the main differences (cell number, genetic similarity, ploidy, and biological role) appropriate to a one-sentence answer."],"key_improvements":[{"0":["Added a brief qualifier to the sentence to make it more accurate.","Added a more detailed explanation of the differences between mitosis and meiosis."]}],"max_improvement_attempts":10,"automatic_hallucination_tolerance_levels":null,"custom_hallucination_threshold_values":{"completeness":0.8,"instruction_adherence":0.8},"capabilities":[{"capability":"web_search"},{"capability":"file_search"},{"capability":"context_awareness"}],"files":[{"file_name":"example.pdf","file_id":"file_xxxxxxxxxxxx","file_size":1024,"presigned_url":"https://deeprails.com/files/example.pdf","presigned_url_expires_at":"2025-11-10T01:32:44.591Z"}]}}},"exampleType":"generated"}},"exampleType":"generated"},"51227cc1-049f-4938-92f7-336ffd4d6998":{"description":"Unauthorized","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"d8871194-eb6a-4029-8e67-23061230e946":{"description":"Event not found","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}}},"security":{"2d5c66e2-4e52-4bf3-9680-65b6932bcb01":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","scopes":[],"schemeName":"BearerAuth"}}},"servers":{"354ef262-08b5-467e-b0b8-a640a41a5637":{"url":"https://api.deeprails.com","description":"Production server"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"JWT","scopes":[],"schemeName":"BearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"BearerAuth","name":"Authorization"}],"title":"BearerAuth"}]},"originalFileLocation":"api-reference/openapi.yaml"},"subdomain":"deeprails-479f3a7b","siteName":"DeepRails","title":"Retrieve an Event's Details - DeepRails","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-03-09T20:45:59.277Z","originalFileLocation":"api-reference/defend/retrieve-an-events-details.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"dark\";if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Use this endpoint to retrieve a specific event of a guardrail workflow\">\u003cmeta data-mint-head name=\"application-name\" content=\"DeepRails\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/deeprails-479f3a7b/Z_VM1vKqq_sDqO8r/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/deeprails-479f3a7b/Z_VM1vKqq_sDqO8r/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/deeprails-479f3a7b/Z_VM1vKqq_sDqO8r/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/deeprails-479f3a7b/Z_VM1vKqq_sDqO8r/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/deeprails-479f3a7b/Z_VM1vKqq_sDqO8r/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/deeprails-479f3a7b/Z_VM1vKqq_sDqO8r/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/deeprails-479f3a7b/Z_VM1vKqq_sDqO8r/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/deeprails-479f3a7b/Z_VM1vKqq_sDqO8r/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/deeprails-479f3a7b/Z_VM1vKqq_sDqO8r/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Retrieve an Event\u0026#x27;s Details - DeepRails\">\u003cmeta data-mint-head property=\"og:description\" content=\"Use this endpoint to retrieve a specific event of a guardrail workflow\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"DeepRails\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.deeprails.com/api-reference/defend/retrieve-an-events-details\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://deeprails-479f3a7b.mintlify.site/_mintlify/api/og/v2?division=Defend\u0026amp;title=Retrieve+an+Event%27s+Details\u0026amp;description=Use+this+endpoint+to+retrieve+a+specific+event+of+a+guardrail+workflow%0A\u0026amp;theme=e5255410c10d93655e7ca4a4\u0026amp;signature=d39168ef5b8179079889b890969b61ae127f7c53417ee7aac9bcd81ddab8bd10\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Retrieve an Event\u0026#x27;s Details - DeepRails\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Use this endpoint to retrieve a specific event of a guardrail workflow\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://deeprails-479f3a7b.mintlify.site/_mintlify/api/og/v2?division=Defend\u0026amp;title=Retrieve+an+Event%27s+Details\u0026amp;description=Use+this+endpoint+to+retrieve+a+specific+event+of+a+guardrail+workflow%0A\u0026amp;theme=e5255410c10d93655e7ca4a4\u0026amp;signature=d39168ef5b8179079889b890969b61ae127f7c53417ee7aac9bcd81ddab8bd10\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/deeprails-479f3a7b/Z_VM1vKqq_sDqO8r/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"DeepRails\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#f2ca46\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.deeprails.com/api-reference/defend/retrieve-an-events-details\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/defend/retrieve-an-events-details.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.deeprails.com/#organization\",\"name\":\"DeepRails\",\"url\":\"https://docs.deeprails.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/deeprails-479f3a7b/bbwR2lswB0faqCU8/logo/deeprails-gold.png?fit=max\u0026auto=format\u0026n=bbwR2lswB0faqCU8\u0026q=85\u0026s=f30c47f94d9c83f7345f61cf0bafdcb1\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.deeprails.com#website\",\"name\":\"DeepRails\",\"url\":\"https://docs.deeprails.com\",\"publisher\":{\"@id\":\"https://docs.deeprails.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.deeprails.com/api-reference/defend/retrieve-an-events-details#webpage\",\"url\":\"https://docs.deeprails.com/api-reference/defend/retrieve-an-events-details\",\"name\":\"Retrieve an Event's Details\",\"description\":\"Use this endpoint to retrieve a specific event of a guardrail workflow\",\"dateModified\":\"2026-03-09T20:45:59.277Z\",\"isPartOf\":{\"@id\":\"https://docs.deeprails.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.deeprails.com/api-reference/defend/retrieve-an-events-details#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.deeprails.com/api-reference/defend/retrieve-an-events-details#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API Documentation\",\"item\":\"https://docs.deeprails.com/api-reference/defend/create-a-workflow\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Defend\",\"item\":\"https://docs.deeprails.com/api-reference/defend/create-a-workflow\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Retrieve an Event's Details\",\"item\":\"https://docs.deeprails.com/api-reference/defend/retrieve-an-events-details\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.deeprails.com/api-reference/defend/retrieve-an-events-details#apireference\",\"headline\":\"Retrieve an Event's Details\",\"name\":\"Retrieve an Event's Details\",\"description\":\"Use this endpoint to retrieve a specific event of a guardrail workflow\",\"url\":\"https://docs.deeprails.com/api-reference/defend/retrieve-an-events-details\",\"mainEntityOfPage\":{\"@id\":\"https://docs.deeprails.com/api-reference/defend/retrieve-an-events-details#webpage\"},\"dateModified\":\"2026-03-09T20:45:59.277Z\",\"publisher\":{\"@id\":\"https://docs.deeprails.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.deeprails.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"DeepRails\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"DeepRails\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/defend/retrieve-an-events-details.md","siteName":"DeepRails","nav":{"global":{"anchors":[{"anchor":"Python SDK","icon":"python","href":"https://pypi.org/project/deeprails"},{"anchor":"TypeScript SDK","icon":"square-js","href":"https://www.npmjs.com/package/deeprails/"},{"anchor":"Ruby SDK","icon":"gem","href":"https://rubygems.org/gems/deeprails"},{"anchor":"Go SDK","icon":"golang","href":"https://pkg.go.dev/github.com/deeprails/deeprails-go-sdk"},{"anchor":"Contact","icon":"envelope","href":"mailto:support@deeprails.ai"}]},"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":""}]},{"tab":"API Reference","groups":[{"group":"API Documentation","pages":[{"group":"Defend","pages":[{"title":"Create a Workflow","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /defend","href":"/api-reference/defend/create-a-workflow"},{"title":"Retrieve a Workflow's Details","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /defend/{workflow_id}","href":"/api-reference/defend/retrieve-a-workflows-details"},{"title":"Update a Workflow","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml put /defend/{workflow_id}","href":"/api-reference/defend/update-a-workflow"},{"title":"Submit a Workflow Event","description":"Use this endpoint to submit a model input and output pair to a workflow for evaluation\n","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /defend/{workflow_id}/events","href":"/api-reference/defend/submit-a-workflow-event"},{"title":"Retrieve an Event's Details","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /defend/{workflow_id}/events/{event_id}","href":"/api-reference/defend/retrieve-an-events-details"},{"title":"Stream a Workflow Event (Optimized)","description":"Use this endpoint to submit a model input and output pair to a workflow for evaluation with streaming responses.\n","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /defend/{workflow_id}/events?stream=true","href":"/api-reference/defend/stream-a-workflow-event-optimized"}]},{"group":"Monitor","pages":[{"title":"Create a Monitor","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /monitor","href":"/api-reference/monitor/create-a-monitor"},{"title":"Retrieve a Monitor's Details","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /monitor/{monitor_id}","href":"/api-reference/monitor/retrieve-a-monitors-details"},{"title":"Update a Monitor","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml put /monitor/{monitor_id}","href":"/api-reference/monitor/update-a-monitor"},{"title":"Submit a Monitor Event","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /monitor/{monitor_id}/events","href":"/api-reference/monitor/submit-a-monitor-event"},{"title":"Retrieve a Monitor Event's Details","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /monitor/{monitor_id}/events/{event_id}","href":"/api-reference/monitor/retrieve-a-monitor-events-details"}]},{"group":"Files","pages":[{"title":"Upload a File","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /files/upload","href":"/api-reference/files/upload-a-file"}]}]}]}]},"basePath":"","title":"Retrieve an Event's Details - DeepRails","deploymentId":"dpl_BLZw3QngerHodH9E8mGgC4v752y3","buildId":"dpl_BLZw3QngerHodH9E8mGgC4v752y3","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CaRkHcld.js","snippetPresets-CbOVSLWB.js","utils-cjri0g4r.js","style-to-object-BY3JEAdk.js","utils-DINdUa17.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-B6z-PJGf.js","conditional-requirements-CFM0id0Q.js","cloneDeep-BldndzCM.js","_Uint8Array-BFUkDgJK.js","isObject-FP1Yky1u.js","ApiExamples-gah5G0c1.js","usePlaygroundInputsStore-DMbftGRK.js","shallow-BPuQ-dV8.js","isEqual-Du6c450V.js","CodeSnippets-BSVM0Ibi.js","CodeSnippet-BtGQRZnK.js","use-playground-group-access-98JyaSW7.js","Page-DuvGhd6e.js","api-description-markdown-ja0XM5Ae.js","DynamicMarkdown-DgKZ4_wp.js","SectionHeading-S4Jc_qPe.js","MethodPill-HIsDH_bI.js","getPastedJson-BKEmMYEO.js","Check2Icon-CRFAnWm9.js","axios-CsQoIw0U.js","Markdown-CexXCNoj.js","AssistantPageLink-C2AZnMAs.js","dist-CjxLTLs9.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}