actrone-memory
    Preparing search index...

    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;
    } = ...

    JSON schema for the extraction output, sent as a structured-output response_format so constrained decoding keeps even a small model on the contract. Strict-mode shaped (every property required, no extra properties) so OpenAI accepts it with strict.

    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