Skip to content
Draft
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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@ coverage
internal

.isaac/

# local scratch (not committed)
scratch/
9 changes: 8 additions & 1 deletion apps/dev-playground/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
serving,
WRITE_ACTIONS,
} from "@databricks/appkit";
import { agents, aiSearch } from "@databricks/appkit/beta";
import { agents, aiSearch, LakebaseThreadStore } from "@databricks/appkit/beta";

import { lakebaseExamples } from "./lakebase-examples-plugin";
import { reconnect } from "./reconnect-plugin";
Expand Down Expand Up @@ -115,6 +115,13 @@ createApp({
// conversational default for the bare `/agent` route (the markdown agents
// are dispatchers or ephemeral and don't make sense as the landing agent).
defaultAgent: "helper",
// Persist threads across restarts when a Lakebase is bound (same
// LAKEBASE_ENDPOINT signal the lakebase plugin uses above). The store
// self-bootstraps its tables on setup; without Lakebase we fall back to
// the in-memory store, so local dev needs no database.
...(process.env.LAKEBASE_ENDPOINT
? { threadStore: new LakebaseThreadStore() }
: {}),
}),
aiSearch({
indexes: {
Expand Down
249 changes: 249 additions & 0 deletions docs/docs/api/appkit/Class.LakebaseThreadStore.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 27 additions & 0 deletions docs/docs/api/appkit/Interface.LakebaseThreadStoreOptions.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions docs/docs/api/appkit/Interface.Thread.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading