Skip to content

Commit 59b4915

Browse files
committed
Chat plugin
Signed-off-by: Hubert Zub <hubert.zub@databricks.com>
1 parent b49eed7 commit 59b4915

26 files changed

Lines changed: 2805 additions & 1 deletion

integrations/appkit-agent/package.json

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,16 @@
1717
"default": "./dist/index.cjs"
1818
}
1919
},
20+
"./chat": {
21+
"import": {
22+
"types": "./dist/chat/index.d.mts",
23+
"default": "./dist/chat/index.mjs"
24+
},
25+
"require": {
26+
"types": "./dist/chat/index.d.cts",
27+
"default": "./dist/chat/index.cjs"
28+
}
29+
},
2030
"./chat-ui/simple": {
2131
"import": {
2232
"types": "./dist/chat-ui/simple.d.mts",
@@ -47,7 +57,7 @@
4757
"format:check": "prettier --check 'src/**/*.ts'"
4858
},
4959
"engines": {
50-
"node": ">=18.0.0"
60+
"node": ">=20.0.0"
5161
},
5262
"peerDependencies": {
5363
"@databricks/appkit": ">=0.21.0",
@@ -56,6 +66,7 @@
5666
"@langchain/langgraph": ">=1.0.0",
5767
"@langchain/mcp-adapters": ">=1.0.0",
5868
"express": ">=4.0.0",
69+
"pg": ">=8.0.0",
5970
"react": "^18.0.0 || ^19.0.0",
6071
"react-dom": "^18.0.0 || ^19.0.0"
6172
},
@@ -72,6 +83,9 @@
7283
"@langchain/mcp-adapters": {
7384
"optional": true
7485
},
86+
"pg": {
87+
"optional": true
88+
},
7589
"react": {
7690
"optional": true
7791
},
@@ -80,9 +94,12 @@
8094
}
8195
},
8296
"dependencies": {
97+
"@databricks/ai-sdk-provider": "^0.5.1",
8398
"@radix-ui/react-slot": "^1.2.4",
99+
"ai": "^6.0.70",
84100
"class-variance-authority": "^0.7.1",
85101
"clsx": "^2.1.1",
102+
"drizzle-orm": "^0.38.0",
86103
"tailwind-merge": "^3.4.0",
87104
"zod": "^4.3.5"
88105
},
@@ -91,6 +108,7 @@
91108
"@langchain/core": "^1.1.8",
92109
"@types/express": "^4.17.25",
93110
"@types/node": "^22.0.0",
111+
"@types/pg": "^8.16.0",
94112
"@types/react": "^19.0.0",
95113
"@types/react-dom": "^19.0.0",
96114
"prettier": "^3.0.0",

integrations/appkit-agent/pnpm-lock.yaml

Lines changed: 128 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

integrations/appkit-agent/src/agent-plugin/agent.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,8 @@ export class AgentPlugin extends Plugin<IAgentConfig> {
234234

235235
exports() {
236236
return {
237+
endpointPath: `/api/${this.name}`,
238+
237239
invoke: async (
238240
messages: { role: string; content: string }[],
239241
): Promise<string> => {

0 commit comments

Comments
 (0)