Fetch available tasks

This commit is contained in:
AbdBarho
2023-01-20 12:16:17 +01:00
parent c81967fca9
commit e80a69dd8a
8 changed files with 62 additions and 17 deletions
+4
View File
@@ -10,6 +10,8 @@ export const enum TaskType {
label_initial_prompt = "label_initial_prompt",
label_prompter_reply = "label_prompter_reply",
label_assistant_reply = "label_assistant_reply",
random = "random",
}
// we need to reconsider how to handle task content types
@@ -32,3 +34,5 @@ export interface TaskResponse<Task extends BaseTask> {
userId: string;
task: Task;
}
export type AvailableTasks = { [taskType in TaskType]: number };