Some checks failed
Build and publish Docker image / docker (push) Failing after 2m33s
23 lines
508 B
TypeScript
23 lines
508 B
TypeScript
export type SupportedLanguage = "DE" | "EN";
|
|
|
|
export type SourceInput = {
|
|
title: string;
|
|
url: string;
|
|
author?: string;
|
|
institution?: string;
|
|
license?: string;
|
|
language: SupportedLanguage;
|
|
trustLevel?: "UNKNOWN" | "LOW" | "MEDIUM" | "HIGH" | "PRIMARY";
|
|
notes?: string;
|
|
};
|
|
|
|
export type ModerationResult = {
|
|
outcome: "APPROVE" | "REJECT" | "ESCALATE";
|
|
riskCategories: string[];
|
|
confidence: number;
|
|
reasoning: string;
|
|
model: string;
|
|
promptVersion: string;
|
|
rawResponse?: unknown;
|
|
};
|