Add response types

This commit is contained in:
AbdBarho
2023-02-03 08:29:01 +01:00
parent 94cbeb84c7
commit db5ea75796
+15
View File
@@ -0,0 +1,15 @@
export interface CreateTaskReply {
text: string;
}
export interface EvaluateTaskReply {
ranking: number[];
}
export interface LabelTaskReply {
text: string;
labels: Record<string, number>;
message_id: string;
}
export type AllTaskReplies = CreateTaskReply | EvaluateTaskReply | LabelTaskReply;