Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions apps/dev-playground/client/src/lib/nav.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,13 @@ export const NAV_GROUPS: ReadonlyArray<NavGroup> = [
"Chat agent over Databricks Model Serving with tools auto-discovered from AppKit plugins.",
icon: BotIcon,
},
{
to: "/agent-chat-full",
label: "Custom Agent (full no-config chat)",
description:
"Drop-in <ChatApp /> with zero props — defaults to /api/agents/chat with the full UX.",
icon: MessageCircleIcon,
},
{
to: "/genie",
label: "Genie",
Expand Down
21 changes: 21 additions & 0 deletions apps/dev-playground/client/src/routeTree.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import { Route as DataVisualizationRouteRouteImport } from './routes/data-visual
import { Route as ChartInferenceRouteRouteImport } from './routes/chart-inference.route'
import { Route as ArrowAnalyticsRouteRouteImport } from './routes/arrow-analytics.route'
import { Route as AnalyticsRouteRouteImport } from './routes/analytics.route'
import { Route as AgentChatFullRouteRouteImport } from './routes/agent-chat-full.route'
import { Route as AgentRouteRouteImport } from './routes/agent.route'
import { Route as IndexRouteImport } from './routes/index'

Expand Down Expand Up @@ -108,6 +109,11 @@ const AnalyticsRouteRoute = AnalyticsRouteRouteImport.update({
path: '/analytics',
getParentRoute: () => rootRouteImport,
} as any)
const AgentChatFullRouteRoute = AgentChatFullRouteRouteImport.update({
id: '/agent-chat-full',
path: '/agent-chat-full',
getParentRoute: () => rootRouteImport,
} as any)
const AgentRouteRoute = AgentRouteRouteImport.update({
id: '/agent',
path: '/agent',
Expand All @@ -122,6 +128,7 @@ const IndexRoute = IndexRouteImport.update({
export interface FileRoutesByFullPath {
'/': typeof IndexRoute
'/agent': typeof AgentRouteRoute
'/agent-chat-full': typeof AgentChatFullRouteRoute
'/analytics': typeof AnalyticsRouteRoute
'/arrow-analytics': typeof ArrowAnalyticsRouteRoute
'/chart-inference': typeof ChartInferenceRouteRoute
Expand All @@ -142,6 +149,7 @@ export interface FileRoutesByFullPath {
export interface FileRoutesByTo {
'/': typeof IndexRoute
'/agent': typeof AgentRouteRoute
'/agent-chat-full': typeof AgentChatFullRouteRoute
'/analytics': typeof AnalyticsRouteRoute
'/arrow-analytics': typeof ArrowAnalyticsRouteRoute
'/chart-inference': typeof ChartInferenceRouteRoute
Expand All @@ -163,6 +171,7 @@ export interface FileRoutesById {
__root__: typeof rootRouteImport
'/': typeof IndexRoute
'/agent': typeof AgentRouteRoute
'/agent-chat-full': typeof AgentChatFullRouteRoute
'/analytics': typeof AnalyticsRouteRoute
'/arrow-analytics': typeof ArrowAnalyticsRouteRoute
'/chart-inference': typeof ChartInferenceRouteRoute
Expand All @@ -185,6 +194,7 @@ export interface FileRouteTypes {
fullPaths:
| '/'
| '/agent'
| '/agent-chat-full'
| '/analytics'
| '/arrow-analytics'
| '/chart-inference'
Expand All @@ -205,6 +215,7 @@ export interface FileRouteTypes {
to:
| '/'
| '/agent'
| '/agent-chat-full'
| '/analytics'
| '/arrow-analytics'
| '/chart-inference'
Expand All @@ -225,6 +236,7 @@ export interface FileRouteTypes {
| '__root__'
| '/'
| '/agent'
| '/agent-chat-full'
| '/analytics'
| '/arrow-analytics'
| '/chart-inference'
Expand All @@ -246,6 +258,7 @@ export interface FileRouteTypes {
export interface RootRouteChildren {
IndexRoute: typeof IndexRoute
AgentRouteRoute: typeof AgentRouteRoute
AgentChatFullRouteRoute: typeof AgentChatFullRouteRoute
AnalyticsRouteRoute: typeof AnalyticsRouteRoute
ArrowAnalyticsRouteRoute: typeof ArrowAnalyticsRouteRoute
ChartInferenceRouteRoute: typeof ChartInferenceRouteRoute
Expand Down Expand Up @@ -378,6 +391,13 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof AnalyticsRouteRouteImport
parentRoute: typeof rootRouteImport
}
'/agent-chat-full': {
id: '/agent-chat-full'
path: '/agent-chat-full'
fullPath: '/agent-chat-full'
preLoaderRoute: typeof AgentChatFullRouteRouteImport
parentRoute: typeof rootRouteImport
}
'/agent': {
id: '/agent'
path: '/agent'
Expand All @@ -398,6 +418,7 @@ declare module '@tanstack/react-router' {
const rootRouteChildren: RootRouteChildren = {
IndexRoute: IndexRoute,
AgentRouteRoute: AgentRouteRoute,
AgentChatFullRouteRoute: AgentChatFullRouteRoute,
AnalyticsRouteRoute: AnalyticsRouteRoute,
ArrowAnalyticsRouteRoute: ArrowAnalyticsRouteRoute,
ChartInferenceRouteRoute: ChartInferenceRouteRoute,
Expand Down
18 changes: 18 additions & 0 deletions apps/dev-playground/client/src/routes/agent-chat-full.route.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { ChatApp } from "@databricks/appkit-ui/react/chat";
import { createFileRoute } from "@tanstack/react-router";

export const Route = createFileRoute("/agent-chat-full")({
component: AgentChatFullRoute,
});

/**
* No-config showcase of `<ChatApp />`. For the build-your-own variant
* that wires `useChat` by hand, see `agent.route.tsx`.
*/
function AgentChatFullRoute() {
return (
<div className="h-svh bg-background">
<ChatApp api="/api/agents/chat" />
</div>
);
}
Loading
Loading