Add "Agente de Parecer" feature

This commit is contained in:
gpt-engineer-app[bot]
2025-10-17 16:24:42 +00:00
parent 530e829680
commit 4ca7b2ff64
6 changed files with 498 additions and 5 deletions
+3 -1
View File
@@ -5,6 +5,7 @@ import { ImageView } from "@/components/images/ImageView";
import { AudioView } from "@/components/audio/AudioView";
import { BotView } from "@/components/bots/BotView";
import { BotChat } from "@/components/bots/BotChat";
import { AgentView } from "@/components/agent/AgentView";
interface Bot {
id: string;
@@ -14,7 +15,7 @@ interface Bot {
}
const Index = () => {
const [activeView, setActiveView] = useState<"chat" | "images" | "audio" | "bots">("chat");
const [activeView, setActiveView] = useState<"chat" | "images" | "audio" | "bots" | "agent">("chat");
const [activeBotChat, setActiveBotChat] = useState<Bot | null>(null);
const handleStartBotChat = (bot: Bot) => {
@@ -37,6 +38,7 @@ const Index = () => {
<BotView onStartChat={handleStartBotChat} />
)
)}
{activeView === "agent" && <AgentView />}
</Layout>
);
};