Knowtation web client
    Preparing search index...

    Function runReport

    • A run as Markdown to paste into an issue, chat or email: what ran, who paid, what it used and every warning. Built from what the run recorded; never data values, keys or email addresses.

      Parameters

      • run: {
            archived_at?: string | null;
            archived_by?: string | null;
            created_at: string;
            dataset_id: string;
            error?: string | null;
            finished_at?: string | null;
            id: string;
            progress?: { cached: number; done: number; total: number } | null;
            record?:
                | {
                    dataset_hash?: string
                    | null;
                    finished_at?: string | null;
                    id: string;
                    llm_model?: string | null;
                    llm_usage?:
                        | {
                            cached_calls?: number
                            | null;
                            calls?: number | null;
                            cost_usd?: number | null;
                            input_tokens?: number | null;
                            output_tokens?: number | null;
                            saved_input_tokens?: number | null;
                            saved_output_tokens?: number | null;
                            skipped_calls?: number | null;
                        }
                        | null;
                    policy_hash?: string
                    | null;
                    policy_id?: string | null;
                    policy_version?: string | null;
                    prompt_version?: string | null;
                    rule_set_hash?: string | null;
                    rule_set_id?: string | null;
                    rule_set_version?: string | null;
                    rule_sets?:
                        | { hash?: string
                        | null; id: string; version: string }[]
                        | null;
                    settings?: string | null;
                    started_at?: string | null;
                    status?: "failed" | "done" | "running" | "pending" | null;
                    warnings?: string[] | null;
                }
                | null;
            request: { [key: string]: unknown };
            started_by?: string | null;
            status: string;
        }
        • Optionalarchived_at?: string | null

          Archived At

        • Optionalarchived_by?: string | null

          Archived By

        • created_at: string

          Created At Format: date-time

        • dataset_id: string

          Dataset Id

        • Optionalerror?: string | null

          Error

        • Optionalfinished_at?: string | null

          Finished At

        • id: string

          Id

        • Optionalprogress?: { cached: number; done: number; total: number } | null
        • Optionalrecord?:
              | {
                  dataset_hash?: string
                  | null;
                  finished_at?: string | null;
                  id: string;
                  llm_model?: string | null;
                  llm_usage?:
                      | {
                          cached_calls?: number
                          | null;
                          calls?: number | null;
                          cost_usd?: number | null;
                          input_tokens?: number | null;
                          output_tokens?: number | null;
                          saved_input_tokens?: number | null;
                          saved_output_tokens?: number | null;
                          skipped_calls?: number | null;
                      }
                      | null;
                  policy_hash?: string
                  | null;
                  policy_id?: string | null;
                  policy_version?: string | null;
                  prompt_version?: string | null;
                  rule_set_hash?: string | null;
                  rule_set_id?: string | null;
                  rule_set_version?: string | null;
                  rule_sets?: { hash?: string | null; id: string; version: string }[] | null;
                  settings?: string | null;
                  started_at?: string | null;
                  status?: "failed" | "done" | "running" | "pending" | null;
                  warnings?: string[] | null;
              }
              | null
        • request: { [key: string]: unknown }

          Request

        • Optionalstarted_by?: string | null

          Started By

          Who started the run.

        • status: string

          Status

      • about: { appVersion: string; dataset: string; version?: number | null }

      Returns string