-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathagent.route.tsx
More file actions
31 lines (28 loc) · 940 Bytes
/
agent.route.tsx
File metadata and controls
31 lines (28 loc) · 940 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
import { AgentChat } from "@databricks/appkit-ui/react";
import { createFileRoute } from "@tanstack/react-router";
export const Route = createFileRoute("/agent")({
component: AgentChatRoute,
});
function AgentChatRoute() {
return (
<div className="min-h-screen bg-background">
<main className="max-w-2xl mx-auto px-6 py-12 flex flex-col h-[calc(100vh-6rem)]">
<div className="mb-6">
<h1 className="text-3xl font-bold tracking-tight text-foreground">
Agent Chat
</h1>
<p className="text-muted-foreground mt-1">
Chat with the agent via <code>POST /invocations</code> (Responses
API SSE stream).
</p>
</div>
<AgentChat
invokeUrl="/invocations"
placeholder="Type a message..."
emptyMessage="Send a message to start."
className="flex-1 min-h-0"
/>
</main>
</div>
);
}