diff --git a/src/components/ChatWindow.tsx b/src/components/ChatWindow.tsx index 20ee176..00a610c 100644 --- a/src/components/ChatWindow.tsx +++ b/src/components/ChatWindow.tsx @@ -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 }; diff --git a/src/layout/default.tsx b/src/layout/default.tsx index 20fd747..4f5b17d 100644 --- a/src/layout/default.tsx +++ b/src/layout/default.tsx @@ -7,12 +7,23 @@ interface LayoutProps { } const DefaultLayout = (props: LayoutProps) => { + const description = + "Assemble, configure, and deploy autonomous AI Agents in your browser."; return (
Agent-GPT - + + + + + + + {props.children} {/*