Campaign Briefs / TypeScript SDK
Run brief scorecard
Compute and return the list-quality scorecard for a brief: overall score, A-F grade, top issues. Side effect: persists a snapshot to brief.plan.latestScorecard on every call. When the grade drops to D or F, also enqueues a list_quality_review HITL item for the operator.
pipeline.runBriefScorecardDeterministic operationParameters
workspaceIdOptional · string- Optional workspace ID or slug. Required when this credential can access multiple workspaces and no workspace was configured on the client.
briefIdRequired · string- See the input schema for this field.
await pipeline.runBriefScorecard({
"briefId": "00000000-0000-4000-8000-000000000000"
})Full input schema
{
"type": "object",
"properties": {
"workspaceId": {
"type": "string",
"minLength": 1,
"description": "Optional workspace ID or slug. Required when this credential can access multiple workspaces and no workspace was configured on the client."
},
"briefId": {
"type": "string"
}
},
"required": [
"briefId"
]
}