initial update for cavepedia
This commit is contained in:
@@ -5,8 +5,8 @@ import "./globals.css";
|
||||
import "@copilotkit/react-ui/styles.css";
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Create Next App",
|
||||
description: "Generated by create next app",
|
||||
title: "Cavepedia",
|
||||
description: "The AI Cave Chat that nobody asked for.",
|
||||
};
|
||||
|
||||
export default function RootLayout({
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
"use client";
|
||||
|
||||
import { useCoAgent, useCopilotAction } from "@copilotkit/react-core";
|
||||
import { CopilotKitCSSProperties, CopilotSidebar } from "@copilotkit/react-ui";
|
||||
import { CopilotKitCSSProperties, CopilotChat } from "@copilotkit/react-ui";
|
||||
import { useState } from "react";
|
||||
|
||||
export default function CopilotKitPage() {
|
||||
@@ -23,12 +23,11 @@ export default function CopilotKitPage() {
|
||||
return (
|
||||
<main style={{ "--copilot-kit-primary-color": themeColor } as CopilotKitCSSProperties}>
|
||||
<YourMainContent themeColor={themeColor} />
|
||||
<CopilotSidebar
|
||||
clickOutsideToClose={false}
|
||||
defaultOpen={true}
|
||||
<CopilotChat
|
||||
instructions={"You assist with looking up any relevant information to caving. This includes but is not limited to Cave Locations, Cave Surveying, Cave History."}
|
||||
labels={{
|
||||
title: "Popup Assistant",
|
||||
initial: "👋 Hi, there! You're chatting with an agent. This agent comes with a few tools to get you started.\n\nFor example you can try:\n- **Frontend Tools**: \"Set the theme to orange\"\n- **Shared State**: \"Write a proverb about AI\"\n- **Generative UI**: \"Get the weather in SF\"\n\nAs you interact with the agent, you'll see the UI update in real-time to reflect the agent's **state**, **tool calls**, and **progress**."
|
||||
title: "AI Cartwright",
|
||||
initial: "Would you like to lookup a cave location today?",
|
||||
}}
|
||||
/>
|
||||
</main>
|
||||
|
||||
Reference in New Issue
Block a user