mirror of
https://github.com/aljazceru/AgentGPT.git
synced 2025-12-17 14:04:25 +01:00
🚀 Add meta
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import cx from "classnames";
|
||||
import type { ReactNode } from "react";
|
||||
import type { Message } from "../pages";
|
||||
import React from "react";
|
||||
|
||||
interface ChatWindowProps {
|
||||
@@ -46,5 +45,18 @@ const ChatMessage = ({ message }: { message: Message }) => {
|
||||
);
|
||||
};
|
||||
|
||||
export interface Message {
|
||||
type: "goal" | "thinking" | "task" | "action";
|
||||
value: string;
|
||||
}
|
||||
|
||||
export const CreateGoalMessage = (goal: string): Message => {
|
||||
return { type: "goal", value: goal };
|
||||
};
|
||||
|
||||
export const CreateTaskMessage = (task: string): Message => {
|
||||
return { type: "task", value: task };
|
||||
};
|
||||
|
||||
export default ChatWindow;
|
||||
export { ChatMessage };
|
||||
|
||||
Reference in New Issue
Block a user