Variable EXTRACTION_RESPONSE_SCHEMAConst
EXTRACTION_RESPONSE_SCHEMA: {
type: "object";
properties: {
facts: {
type: "array";
items: {
type: "object";
properties: {
content: { type: "string" };
sensitivity: {
type: "string";
enum: readonly ["none", "low", "pii", "sensitive"];
};
topic_tags: { type: "array"; items: { type: "string" } };
importance: { type: "number" };
};
required: readonly [
"content",
"sensitivity",
"topic_tags",
"importance",
];
additionalProperties: false;
};
};
};
required: readonly ["facts"];
additionalProperties: false;
} = ...
Type Declaration
-
Readonlytype: "object"
-
Readonlyproperties: {
facts: {
type: "array";
items: {
type: "object";
properties: {
content: { type: "string" };
sensitivity: {
type: "string";
enum: readonly ["none", "low", "pii", "sensitive"];
};
topic_tags: { type: "array"; items: { type: "string" } };
importance: { type: "number" };
};
required: readonly ["content", "sensitivity", "topic_tags", "importance"];
additionalProperties: false;
};
};
}
-
Readonlyrequired: readonly ["facts"]
-
ReadonlyadditionalProperties: false
JSON schema for the extraction output, sent as a structured-output
response_formatso constrained decoding keeps even a small model on the contract. Strict-mode shaped (every property required, no extra properties) so OpenAI accepts it withstrict.