jevrecipes

Recipe catalog / answer-disclosures

Label the disclosures in an answer

answer-disclosures is a Jev recipe from the jev-recipes TypeScript package. Which of these does draft include: stated uncertainty, stated limitations, cited sources, stated assumptions? Use it when you need to audit or gate model answers on transparency habits in a single call, for evaluation sets or response policies.

Last updated .

Explore this recipe interactively · Source and implementation guide · Markdown version

How do I use answer-disclosures in TypeScript?

Install with npm install jev-recipes. Requires Node.js 22.9 or newer and ES modules. Set TYPESAFE_API_KEY in your server environment for live calls, which send input to TypeSafe and use API quota. See the installation guide.

import { answerDisclosures } from 'jev-recipes/answer-disclosures';

const result = await answerDisclosures({
  "draft": "Based on the 2024 pricing page, the Team plan includes SSO. I am not certain this still applies to accounts created before March, and I have not checked the enterprise tier. I am assuming you are on a monthly plan.",
  "minConfidence": 0.8
});
console.log(result);

What input does answer-disclosures take?

FieldTypeNeeded
draftstringRequired
minConfidencenumberOptional
Full input and result schemas
{
  "input": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "draft": {
        "type": "string"
      },
      "minConfidence": {
        "type": "number",
        "minimum": 0,
        "maximum": 1
      }
    },
    "required": [
      "draft"
    ]
  },
  "result": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "model": {
        "type": "string"
      },
      "usage": {
        "type": "object",
        "properties": {
          "input_tokens": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "output_tokens": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "input_tokens",
          "output_tokens"
        ],
        "additionalProperties": false
      },
      "status": {
        "type": "string",
        "enum": [
          "ready",
          "review"
        ]
      },
      "detected": {
        "type": "array",
        "items": {
          "type": "string",
          "enum": [
            "statesUncertainty",
            "statesLimitations",
            "citesSources",
            "statesAssumptions"
          ]
        }
      },
      "labels": {
        "type": "object",
        "properties": {
          "statesUncertainty": {
            "type": "object",
            "properties": {
              "status": {
                "type": "string",
                "enum": [
                  "ready",
                  "review"
                ]
              },
              "verdict": {
                "type": "string",
                "enum": [
                  "present",
                  "absent"
                ]
              },
              "probability": {
                "type": "number",
                "minimum": 0,
                "maximum": 1
              },
              "confidence": {
                "type": "number",
                "minimum": 0,
                "maximum": 1
              }
            },
            "required": [
              "status",
              "verdict",
              "probability",
              "confidence"
            ],
            "additionalProperties": false
          },
          "statesLimitations": {
            "type": "object",
            "properties": {
              "status": {
                "type": "string",
                "enum": [
                  "ready",
                  "review"
                ]
              },
              "verdict": {
                "type": "string",
                "enum": [
                  "present",
                  "absent"
                ]
              },
              "probability": {
                "type": "number",
                "minimum": 0,
                "maximum": 1
              },
              "confidence": {
                "type": "number",
                "minimum": 0,
                "maximum": 1
              }
            },
            "required": [
              "status",
              "verdict",
              "probability",
              "confidence"
            ],
            "additionalProperties": false
          },
          "citesSources": {
            "type": "object",
            "properties": {
              "status": {
                "type": "string",
                "enum": [
                  "ready",
                  "review"
                ]
              },
              "verdict": {
                "type": "string",
                "enum": [
                  "present",
                  "absent"
                ]
              },
              "probability": {
                "type": "number",
                "minimum": 0,
                "maximum": 1
              },
              "confidence": {
                "type": "number",
                "minimum": 0,
                "maximum": 1
              }
            },
            "required": [
              "status",
              "verdict",
              "probability",
              "confidence"
            ],
            "additionalProperties": false
          },
          "statesAssumptions": {
            "type": "object",
            "properties": {
              "status": {
                "type": "string",
                "enum": [
                  "ready",
                  "review"
                ]
              },
              "verdict": {
                "type": "string",
                "enum": [
                  "present",
                  "absent"
                ]
              },
              "probability": {
                "type": "number",
                "minimum": 0,
                "maximum": 1
              },
              "confidence": {
                "type": "number",
                "minimum": 0,
                "maximum": 1
              }
            },
            "required": [
              "status",
              "verdict",
              "probability",
              "confidence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "statesUncertainty",
          "statesLimitations",
          "citesSources",
          "statesAssumptions"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "model",
      "usage",
      "status",
      "detected",
      "labels"
    ],
    "additionalProperties": false
  }
}

What does a answer-disclosures result look like?

This hand-authored response demonstrates the contract. It is not a model accuracy measurement. Run it without an API key: npx jev-recipes demo answer-disclosures.

{
  "model": "demo-fixture",
  "usage": {
    "input_tokens": 0,
    "output_tokens": 0
  },
  "status": "ready",
  "detected": [
    "statesUncertainty",
    "statesLimitations",
    "citesSources",
    "statesAssumptions"
  ],
  "labels": {
    "statesUncertainty": {
      "status": "ready",
      "verdict": "present",
      "probability": 0.95,
      "confidence": 0.95
    },
    "statesLimitations": {
      "status": "ready",
      "verdict": "present",
      "probability": 0.9,
      "confidence": 0.9
    },
    "citesSources": {
      "status": "ready",
      "verdict": "present",
      "probability": 0.88,
      "confidence": 0.88
    },
    "statesAssumptions": {
      "status": "ready",
      "verdict": "present",
      "probability": 0.94,
      "confidence": 0.94
    }
  }
}

Input

See shared options and behavior for client configuration, validation, and errors. Types are inferred from this folder's Zod 4 schemas.

Result

labels holds one check per disclosure: statesUncertainty, statesLimitations, citesSources, and statesAssumptions. Each check has a verdict of present or absent, the yes probability, confidence for the chosen side, and its own status. detected lists the present disclosures in declaration order.

The overall status is review when any single label falls below minConfidence. Labels that are individually ready remain usable in that case.

Reuse and calls

Uses the shared labels helper, which places one yes/no question per disclosure in a single Jev request. This folder owns the four questions and their outcome descriptions. A live invocation makes one logical Jev request.

Limits

The recipe reports whether each disclosure appears, not whether it is warranted. An answer can hedge about something it should state plainly, or cite a source that does not exist. Pair citesSources with a link or reference check in code. For the strength of hedging on one claim use uncertainty-expression.

Example input

demo.json contains editable input and a hand-authored response. After installing jev-recipes, npx jev-recipes demo answer-disclosures shows an offline illustration, not an accuracy measurement. Use npx jev-recipes describe answer-disclosures to inspect the input and result schemas.

How accurate is answer-disclosures?

Fixture only

No verified live accuracy measurement is available. Evaluate representative cases before using this decision in your workflow.

Use the evaluation guide to measure this decision on your own labeled cases.

What are the limits of answer-disclosures?