INNER CODE UNIT · JavaScript
logActionFailure
Devolutions/IronRDP · .github/actions/openai-agent/src/main.js:178
function logActionFailure(core, phase, outcome, streamStructuralViolation, postFinishShape) {
core.info(JSON.stringify({
event: "openai-agent.failure",
phase,
reason: outcome.reason,
category: outcome.category,
retryable: outcome.retryable,
...(streamStructuralViolation === undefined ? {} : { streamStructuralViolation }),
...(postFinishShape === undefined ? {} : { postFinishShape }),
}));
}
function setOutputs(core, {
output, failureReason, failureCategory, retryable, turnCount, toolCallCount, outputRepairCount,
metrics,
}) {
const diagnostics = metrics.snapshot({
outputRepairCount,