Member Junction
    Preparing search index...
    • Parses corpus.jsonl. Blank lines are skipped. Throws a DecisionCorpusError naming the line when a line is not JSON, does not match the point schema, or repeats a point ID.

      Parameters

      • text: string

        The file's text.

      • fileName: string = 'corpus.jsonl'

        The file's name, for messages.

      Returns {
          artifacts: {
              artifactId: string;
              artifactName: string;
              artifactType: string;
              versions: {
                  versionId: string;
                  versionName: string | null;
                  versionNumber: number;
              }[];
          }[];
          conversation_id: string;
          created_at: string;
          history: {
              agent_id: string
              | null;
              agent_name: string | null;
              created_at: string;
              id: string;
              message: string;
              role: "User" | "AI";
              status: string;
          }[];
          id: string;
          latest_message: string;
          previous_agent: { description: string; id: string; name: string };
          source: string;
      }[]