SqliteCheckpointerBackend

org.llm4s.agent.graph.sqlite.SqliteCheckpointerBackend
See theSqliteCheckpointerBackend companion object
@Experimental

Registers SqliteCheckpointer for llm4s.agent.checkpointer.kind = sqlite (design 4.54).

Declared in this module's META-INF/services/org.llm4s.agent.graph.spi.CheckpointerBackend, so depending on llm4s-agent-checkpoint-sqlite is all it takes. It reads llm4s.agent.checkpointer.sqlite, whose defaults and bindings are in this module's reference.conf:

  • path (LLM4S_CHECKPOINTER_SQLITE_PATH): the database file, created if it does not exist (its directory must); required;
  • busyTimeout (5 seconds): SqliteCheckpointerConfig.busyTimeout.

Claims expire by the system clock. A class rather than an object because java.util.ServiceLoader instantiates it through a public no-arg constructor.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

Opens the store settings describes.

Opens the store settings describes.

Return a Left rather than throwing - a missing setting, a value the store refuses, a database that cannot be reached - naming the key at fault (CheckpointerSettings.key). Never put a setting's value in an error or a log line: the block may hold a password. A thrown exception is caught and reported, but loses what went wrong.

Attributes

Concrete fields

val kind: String

The llm4s.agent.checkpointer.kind this backend serves; matched case-insensitively.

The llm4s.agent.checkpointer.kind this backend serves; matched case-insensitively.

Attributes