CheckpointStore

org.llm4s.agent.graph.spi.CheckpointStore
See theCheckpointStore companion object
@Experimental
final class CheckpointStore extends AutoCloseable

An open checkpoint store, as a CheckpointerBackend returns it: the Checkpointer to build a GraphRuntime over, the store's RunQueue when it has one, and the means to close what the backend opened for them (a file, a connection pool).

The queue lives in the same database as the checkpoints and shares the checkpointer's connection pool (design 4.55), so a queue opened from application.conf repeats no store setting under llm4s.agent.queue: open the store with CheckpointerConfigLoader.open() and take runQueue from it. The built-in memory, sqlite and postgres stores all have one.

Close it when the application stops, after every runtime and worker over it has finished: close() releases the backend's resources once, and later calls do nothing. Calls to the checkpointer or the queue after close fail as the store documents.

Value parameters

kind

the llm4s.agent.checkpointer.kind the store was opened for

Attributes

Companion
object
Source
CheckpointStore.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def close(): Unit

Closes what the backend opened for the store; only the first call does anything.

Closes what the backend opened for the store; only the first call does anything.

Attributes

Source
CheckpointStore.scala

Whether close has been called.

Whether close has been called.

Attributes

Source
CheckpointStore.scala

The store's run queue, in the same database as checkpointer - a RunSubmitter and W2's workers are built over the two - or a ConfigurationError for a store whose backend gave it none (CheckpointStore!.withRunQueue).

The store's run queue, in the same database as checkpointer - a RunSubmitter and W2's workers are built over the two - or a ConfigurationError for a store whose backend gave it none (CheckpointStore!.withRunQueue).

Attributes

Source
CheckpointStore.scala
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any
Source
CheckpointStore.scala

This store, with queue as its run queue: a backend whose store has a queue in the same database returns its open store this way. The result is the same store - closing either closes it once.

This store, with queue as its run queue: a backend whose store has a queue in the same database returns its open store this way. The result is the same store - closing either closes it once.

Attributes

Source
CheckpointStore.scala

Concrete fields

val kind: String

Attributes

Source
CheckpointStore.scala