Skip to content

Commit 16e71ae

Browse files
committed
playground
Signed-off-by: Hubert Zub <hubert.zub@databricks.com>
1 parent a1b28f4 commit 16e71ae

16 files changed

Lines changed: 11021 additions & 0 deletions

File tree

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,7 @@ docs/build
2222
**/uv.lock
2323

2424
node_modules/
25+
26+
# Environment secrets
27+
.env
28+
.env.local
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# ── Databricks Authentication ──────────────────────────────────
2+
#
3+
# Option 1 (recommended): Databricks CLI profile
4+
# Run: databricks auth login --host <workspace-url> --profile DEFAULT
5+
# Then set:
6+
DATABRICKS_CONFIG_PROFILE=DEFAULT
7+
#
8+
# Option 2: Direct credentials
9+
# DATABRICKS_HOST=https://your-workspace.cloud.databricks.com
10+
# DATABRICKS_TOKEN=dapi...
11+
12+
# ── Agent Model ───────────────────────────────────────────────
13+
DATABRICKS_MODEL=databricks-claude-sonnet-4-5
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>Agent Playground — Custom UI</title>
7+
</head>
8+
<body>
9+
<div id="root"></div>
10+
<script type="module" src="/src/main.tsx"></script>
11+
</body>
12+
</html>
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"name": "@databricks/appkit-agent-playground-custom-ui",
3+
"private": true,
4+
"type": "module",
5+
"scripts": {
6+
"dev:server": "tsx watch --env-file=.env server/index.ts",
7+
"dev:client": "vite",
8+
"dev": "concurrently -n server,client -c blue,green \"pnpm run dev:server\" \"pnpm run dev:client\"",
9+
"build:client": "vite build",
10+
"start": "node --env-file=.env server/index.ts"
11+
},
12+
"dependencies": {
13+
"@ai-sdk/react": "^3.0.118",
14+
"@databricks/appkit": "^0.21.0",
15+
"@databricks/appkit-agent": "file:../..",
16+
"@databricks/langchainjs": "^0.1.0",
17+
"@langchain/core": "^1.1.33",
18+
"@langchain/langgraph": "^1.2.2",
19+
"ai": "^6.0.116",
20+
"pg": "^8.20.0",
21+
"react": "^19.0.0",
22+
"react-dom": "^19.0.0",
23+
"reflect-metadata": "^0.2.0"
24+
},
25+
"devDependencies": {
26+
"@types/express": "^4.17.25",
27+
"@types/node": "^22.0.0",
28+
"@types/pg": "^8.18.0",
29+
"@types/react": "^19.0.0",
30+
"@types/react-dom": "^19.0.0",
31+
"@vitejs/plugin-react": "^4.0.0",
32+
"concurrently": "^9.0.0",
33+
"tsx": "^4.20.0",
34+
"typescript": "^5.4.0",
35+
"vite": "^6.0.0"
36+
},
37+
"pnpm": {
38+
"onlyBuiltDependencies": [
39+
"@databricks/appkit",
40+
"esbuild",
41+
"protobufjs"
42+
]
43+
}
44+
}

0 commit comments

Comments
 (0)