feat: add prompt for assistant

This commit is contained in:
Steven
2023-03-19 23:19:08 +08:00
parent 797eb5d824
commit d11648f2bb
6 changed files with 35 additions and 25 deletions

View File

@ -1,16 +1,7 @@
import { create } from "zustand";
import { assistantList } from ".";
import { Id, User, UserRole } from "../types";
export const assistantList: User[] = [
{
id: "assistant-dba",
name: "ChatDBA",
description: "🤖️ I am a chatbot that can help you with database administration.",
avatar: "",
role: UserRole.Assistant,
},
];
const localUser: User = {
id: "local-user",
name: "Local user",
@ -20,7 +11,6 @@ const localUser: User = {
};
interface UserState {
// We can think assistants are special users.
assistantList: User[];
currentUser: User;
getAssistantById: (id: string) => User | undefined;