mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-07-21 12:20:08 +08:00
@@ -1,10 +1,15 @@
|
||||
import { Grid } from "@chakra-ui/react";
|
||||
import { forwardRef, useColorMode } from "@chakra-ui/react";
|
||||
import { useMemo } from "react";
|
||||
import { Message } from "src/types/Conversation";
|
||||
|
||||
import { FlaggableElement } from "./FlaggableElement";
|
||||
|
||||
export interface Message {
|
||||
text: string;
|
||||
is_assistant: boolean;
|
||||
message_id: string;
|
||||
}
|
||||
|
||||
export interface ValidLabel {
|
||||
name: string;
|
||||
display_text: string;
|
||||
|
||||
@@ -3,14 +3,13 @@ import { Messages } from "src/components/Messages";
|
||||
import { TaskControls } from "src/components/Survey/TaskControls";
|
||||
import { TrackedTextarea } from "src/components/Survey/TrackedTextarea";
|
||||
import { TwoColumnsWithCards } from "src/components/Survey/TwoColumnsWithCards";
|
||||
import {} from "src/components/Tasks/TaskTypes";
|
||||
import { TaskType } from "./TaskTypes";
|
||||
import { TaskType } from "src/components/Tasks/TaskTypes";
|
||||
|
||||
export interface CreateTaskProps {
|
||||
// we need a task type
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
tasks: any[];
|
||||
taskType: TaskInfo;
|
||||
taskType: TaskType;
|
||||
trigger: (update: { id: string; update_type: string; content: { text: string } }) => void;
|
||||
onSkipTask: (task: { id: string }, reason: string) => void;
|
||||
onNextTask: () => void;
|
||||
|
||||
@@ -4,7 +4,7 @@ export enum TaskCategory {
|
||||
Label = "Label",
|
||||
}
|
||||
|
||||
export interface TaskInfo {
|
||||
export interface TaskType {
|
||||
label: string;
|
||||
desc: string;
|
||||
category: TaskCategory;
|
||||
@@ -14,7 +14,7 @@ export interface TaskInfo {
|
||||
instruction?: string;
|
||||
}
|
||||
|
||||
export const TaskTypes: TaskInfo[] = [
|
||||
export const TaskTypes: TaskType[] = [
|
||||
// create
|
||||
{
|
||||
label: "Create Initial Prompts",
|
||||
|
||||
Reference in New Issue
Block a user