forked from CopilotKit/CopilotKit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlayout.tsx
More file actions
39 lines (35 loc) · 1021 Bytes
/
Copy pathlayout.tsx
File metadata and controls
39 lines (35 loc) · 1021 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import type { Metadata } from "next";
import { Manrope } from "next/font/google";
import { GeistMono } from "geist/font/mono";
import { CopilotKit } from "@copilotkit/react-core";
import "./globals.css";
import "@copilotkit/react-ui/styles.css";
const manrope = Manrope({
subsets: ["latin"],
display: "swap",
variable: "--font-manrope",
});
export const metadata: Metadata = {
title: "AG-UI Canvas | CopilotKit with LangGraph Python",
description: "Generated by CopilotKit with LangGraph Python",
};
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<html lang="en" className={`${manrope.variable} ${GeistMono.variable}`}>
<body className="subpixel-antialiased">
<CopilotKit
runtimeUrl="/api/copilotkit"
agent="sample_agent"
showDevConsole={false}
publicApiKey={process.env.COPILOT_CLOUD_PUBLIC_API_KEY}
>
{children}
</CopilotKit>
</body>
</html>
);
}