Add response types

This commit is contained in:
AbdBarho committed 2023-02-03 08:29:01 +01:00
1 parent 94cbeb84c7
commit db5ea75796
1 file changed
+15
+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;