Skip to content

Navigation Menu

Sign in
Sign up

Discusstion: How to persist the tape #93

Answered by frostming
timeswind asked this question in Q&A
Discussion options

It seems that uv run bub chat only store tape entries in the program runtime, is there any ways to store the tape data as a standalone file?

You must be logged in to vote

It seems that uv run bub chat only store tape entries in the program runtime

It's not true, the default tape store is file store:

@hookimpl
def provide_tape_store(self) -> TapeStore:
from bub.builtin.store import FileTapeStore
return FileTapeStore(directory=self.agent.settings.home / "tapes")

Replies: 3 comments

Comment options

as dedefault tape data in ~/.bub/tapes on linux ,

DEFAULT_HOME = pathlib.Path.home() / ".bub"
You must be logged in to vote
0 replies
Comment options

Thanks to @rockyzhengwu for answering.

And we've recently added support for using databases as tape, currently covering SQLite and SQLAlchemy. https://github.com/bubbuild/bub-contrib

This is still in its early stages, so we welcome your feedback on any issues.

Have fun!

You must be logged in to vote
0 replies
Comment options

It seems that uv run bub chat only store tape entries in the program runtime

It's not true, the default tape store is file store:

@hookimpl
def provide_tape_store(self) -> TapeStore:
from bub.builtin.store import FileTapeStore
return FileTapeStore(directory=self.agent.settings.home / "tapes")
You must be logged in to vote
0 replies
Answer selected by PsiACE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
Converted from issue

This discussion was converted from issue #92 on March 08, 2026 04:47.

AltStyle によって変換されたページ (->オリジナル) /