mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
580fe9bc58
The deployable Next.js demo behind the new Daytona cookbook recipe. A minimal CopilotKit Built-in Agent whose only added capability is the recipe's runCode server tool — executes Python / TypeScript / JavaScript in an isolated Daytona sandbox and streams the result back to the chat via a custom useRenderTool card (fixed-height streaming code pane with react-syntax-highlighter + vscDarkPlus, mirroring @copilotkit/react-ui's own CodeBlock, and a fixed- height result pane with a 'Generated code:' / 'Result:' label pair). The agent's system prompt instructs it not to restate stdout in chat text since the renderer already shows it. Standalone npm project — intentionally not in the monorepo's pnpm workspace (matches the existing examples/showcases/* convention; only generative-ui- playground is in the workspace globs). Validated end to end against published @copilotkit/runtime@1.58.0 with both Python and JavaScript snippets round- tripping through real Daytona sandboxes. OSS-222
16 lines
403 B
TypeScript
16 lines
403 B
TypeScript
import type { ReactNode } from "react";
|
||
import "@copilotkit/react-core/v2/styles.css";
|
||
|
||
export const metadata = {
|
||
title: "CopilotKit × Daytona",
|
||
description: "A built-in agent that runs code in Daytona sandboxes.",
|
||
};
|
||
|
||
export default function RootLayout({ children }: { children: ReactNode }) {
|
||
return (
|
||
<html lang="en">
|
||
<body style={{ margin: 0 }}>{children}</body>
|
||
</html>
|
||
);
|
||
}
|