Initial human archive app
Some checks failed
Build and publish Docker image / docker (push) Failing after 2m33s
Some checks failed
Build and publish Docker image / docker (push) Failing after 2m33s
This commit is contained in:
22
src/lib/types.ts
Normal file
22
src/lib/types.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
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;
|
||||
};
|
||||
Reference in New Issue
Block a user