diff --git a/src/components/ChatWindow.tsx b/src/components/ChatWindow.tsx index e0ddb1f..098caa4 100644 --- a/src/components/ChatWindow.tsx +++ b/src/components/ChatWindow.tsx @@ -2,6 +2,7 @@ import type { ReactNode } from "react"; import React, { useEffect, useRef } from "react"; import { FaBrain, FaListAlt, FaPlayCircle, FaStar } from "react-icons/fa"; import autoAnimate from "@formkit/auto-animate"; +import PopIn from "./motions/popin"; interface ChatWindowProps { children?: ReactNode; @@ -32,7 +33,7 @@ const ChatWindow = ({ messages, children, className }: ChatWindowProps) => { >
{messages.map((message, index) => ( @@ -43,7 +44,15 @@ const ChatWindow = ({ messages, children, className }: ChatWindowProps) => { {messages.length != 0 ? ( ) : ( - "" + + Create an agent by adding a name / goal, and hitting deploy!", + }} + /> + )}
@@ -99,7 +108,7 @@ const getMessagePrefix = (message: Message) => { }; export interface Message { - type: "goal" | "thinking" | "task" | "action"; + type: "goal" | "thinking" | "task" | "action" | "system"; value: string; }