Skip to content

Commit cd03899

Browse files
committed
feat(appkit): add AgentPlugin for LangChain/LangGraph agents
Signed-off-by: Hubert Zub <hubert.zub@databricks.com>
1 parent bf54836 commit cd03899

33 files changed

Lines changed: 3184 additions & 4 deletions

apps/dev-playground/.env.dist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ OTEL_EXPORTER_OTLP_ENDPOINT='http://localhost:4318'
77
OTEL_RESOURCE_ATTRIBUTES='service.sample_attribute=dev'
88
OTEL_SERVICE_NAME='dev-playground'
99
DATABRICKS_GENIE_SPACE_ID=
10+
DATABRICKS_AGENT_MODEL=
1011
LAKEBASE_ENDPOINT='' # Run: databricks postgres list-endpoints projects/{project-id}/branches/{branch-id} — use the `name` field from the output
1112
PGHOST=
1213
PGUSER=

apps/dev-playground/client/src/routeTree.gen.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import { Route as GenieRouteRouteImport } from './routes/genie.route'
1818
import { Route as DataVisualizationRouteRouteImport } from './routes/data-visualization.route'
1919
import { Route as ArrowAnalyticsRouteRouteImport } from './routes/arrow-analytics.route'
2020
import { Route as AnalyticsRouteRouteImport } from './routes/analytics.route'
21+
import { Route as AgentRouteRouteImport } from './routes/agent.route'
2122
import { Route as IndexRouteImport } from './routes/index'
2223

2324
const TypeSafetyRouteRoute = TypeSafetyRouteRouteImport.update({
@@ -65,6 +66,11 @@ const AnalyticsRouteRoute = AnalyticsRouteRouteImport.update({
6566
path: '/analytics',
6667
getParentRoute: () => rootRouteImport,
6768
} as any)
69+
const AgentRouteRoute = AgentRouteRouteImport.update({
70+
id: '/agent',
71+
path: '/agent',
72+
getParentRoute: () => rootRouteImport,
73+
} as any)
6874
const IndexRoute = IndexRouteImport.update({
6975
id: '/',
7076
path: '/',
@@ -73,6 +79,7 @@ const IndexRoute = IndexRouteImport.update({
7379

7480
export interface FileRoutesByFullPath {
7581
'/': typeof IndexRoute
82+
'/agent': typeof AgentRouteRoute
7683
'/analytics': typeof AnalyticsRouteRoute
7784
'/arrow-analytics': typeof ArrowAnalyticsRouteRoute
7885
'/data-visualization': typeof DataVisualizationRouteRoute
@@ -85,6 +92,7 @@ export interface FileRoutesByFullPath {
8592
}
8693
export interface FileRoutesByTo {
8794
'/': typeof IndexRoute
95+
'/agent': typeof AgentRouteRoute
8896
'/analytics': typeof AnalyticsRouteRoute
8997
'/arrow-analytics': typeof ArrowAnalyticsRouteRoute
9098
'/data-visualization': typeof DataVisualizationRouteRoute
@@ -98,6 +106,7 @@ export interface FileRoutesByTo {
98106
export interface FileRoutesById {
99107
__root__: typeof rootRouteImport
100108
'/': typeof IndexRoute
109+
'/agent': typeof AgentRouteRoute
101110
'/analytics': typeof AnalyticsRouteRoute
102111
'/arrow-analytics': typeof ArrowAnalyticsRouteRoute
103112
'/data-visualization': typeof DataVisualizationRouteRoute
@@ -112,6 +121,7 @@ export interface FileRouteTypes {
112121
fileRoutesByFullPath: FileRoutesByFullPath
113122
fullPaths:
114123
| '/'
124+
| '/agent'
115125
| '/analytics'
116126
| '/arrow-analytics'
117127
| '/data-visualization'
@@ -124,6 +134,7 @@ export interface FileRouteTypes {
124134
fileRoutesByTo: FileRoutesByTo
125135
to:
126136
| '/'
137+
| '/agent'
127138
| '/analytics'
128139
| '/arrow-analytics'
129140
| '/data-visualization'
@@ -136,6 +147,7 @@ export interface FileRouteTypes {
136147
id:
137148
| '__root__'
138149
| '/'
150+
| '/agent'
139151
| '/analytics'
140152
| '/arrow-analytics'
141153
| '/data-visualization'
@@ -149,6 +161,7 @@ export interface FileRouteTypes {
149161
}
150162
export interface RootRouteChildren {
151163
IndexRoute: typeof IndexRoute
164+
AgentRouteRoute: typeof AgentRouteRoute
152165
AnalyticsRouteRoute: typeof AnalyticsRouteRoute
153166
ArrowAnalyticsRouteRoute: typeof ArrowAnalyticsRouteRoute
154167
DataVisualizationRouteRoute: typeof DataVisualizationRouteRoute
@@ -225,6 +238,13 @@ declare module '@tanstack/react-router' {
225238
preLoaderRoute: typeof AnalyticsRouteRouteImport
226239
parentRoute: typeof rootRouteImport
227240
}
241+
'/agent': {
242+
id: '/agent'
243+
path: '/agent'
244+
fullPath: '/agent'
245+
preLoaderRoute: typeof AgentRouteRouteImport
246+
parentRoute: typeof rootRouteImport
247+
}
228248
'/': {
229249
id: '/'
230250
path: '/'
@@ -237,6 +257,7 @@ declare module '@tanstack/react-router' {
237257

238258
const rootRouteChildren: RootRouteChildren = {
239259
IndexRoute: IndexRoute,
260+
AgentRouteRoute: AgentRouteRoute,
240261
AnalyticsRouteRoute: AnalyticsRouteRoute,
241262
ArrowAnalyticsRouteRoute: ArrowAnalyticsRouteRoute,
242263
DataVisualizationRouteRoute: DataVisualizationRouteRoute,

apps/dev-playground/client/src/routes/__root.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,14 @@ function RootComponent() {
8888
Genie
8989
</Button>
9090
</Link>
91+
<Link to="/agent" className="no-underline">
92+
<Button
93+
variant="ghost"
94+
className="text-foreground hover:text-secondary-foreground"
95+
>
96+
Agent
97+
</Button>
98+
</Link>
9199
<ThemeSelector />
92100
</div>
93101
</nav>

0 commit comments

Comments
 (0)