MCPcopy Create free account
hub / github.com/CommandCodeAI/BaseAI / Page

Function Page

examples/nextjs/app/page.tsx:3–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1import Link from 'next/link';
2
3export default function Page() {
4 const examples = [
5 { title: 'Pipe Run', href: '/demo/pipe-run' },
6 { title: 'Pipe Run Stream', href: '/demo/pipe-run-stream' },
7 { title: 'Chat Simple', href: '/demo/chat-simple' },
8 { title: 'Chat Advanced', href: '/demo/chat-advanced' },
9 { title: 'Tool Calling', href: '/demo/tool-calling' },
10 { title: 'Tool Calling Stream', href: '/demo/tool-calling-stream' },
11 {
12 title: 'Tool Calling: Pipes as Tools',
13 href: '/demo/pipe-run-pipes-as-tools',
14 },
15 { title: 'Memory', href: '/demo/memory' },
16 ];
17
18 return (
19 <div className="w-full max-w-md">
20 <h1 className="text-3xl font-light text-gray-800 mb-8 text-center">
21 Examples
22 </h1>
23 <ul className="space-y-3">
24 {examples.map((example, index) => (
25 <li key={index}>
26 <Link
27 href={example.href}
28 className="block bg-white rounded-xl p-4 shadow-sm hover:shadow-md transition-shadow duration-200 border border-gray-100"
29 >
30 <div className="flex items-center justify-between">
31 <span className="text-lg text-gray-700">
32 {example.title}
33 </span>
34 <svg
35 className="w-5 h-5 text-gray-400"
36 fill="none"
37 strokeLinecap="round"
38 strokeLinejoin="round"
39 strokeWidth="2"
40 viewBox="0 0 24 24"
41 stroke="currentColor"
42 >
43 <path d="M9 5l7 7-7 7"></path>
44 </svg>
45 </div>
46 </Link>
47 </li>
48 ))}
49 </ul>
50 </div>
51 );
52}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected