CheckpointerSettings

org.llm4s.agent.graph.spi.CheckpointerSettings
See theCheckpointerSettings companion object
@Experimental
final class CheckpointerSettings

What a CheckpointerBackend opens its store from: the selected kind and that kind's own block, llm4s.agent.checkpointer.<kind>, flattened to strings keyed by their path inside the block (busyTimeout, pool.size).

The typed readers turn a missing or malformed value into a ConfigurationError that names the full key, never the value, which may be a password. toString lists only the keys, for the same reason.

Value parameters

extras

the kind's block; empty when the configuration has none

kind

the selected kind, lower-cased

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def boolean(name: String, default: Boolean): Result[Boolean]

name as true or false, or default when absent.

name as true or false, or default when absent.

Attributes

def duration(name: String, default: FiniteDuration): Result[FiniteDuration]

name as a HOCON duration (5 seconds, 250ms; a bare number is milliseconds), or default when absent.

name as a HOCON duration (5 seconds, 250ms; a bare number is milliseconds), or default when absent.

Attributes

def int(name: String, default: Int): Result[Int]

name as an integer, or default when absent.

name as an integer, or default when absent.

Attributes

def key(name: String): String

The full configuration key of name in this kind's block: llm4s.agent.checkpointer.<kind>.<name>.

The full configuration key of name in this kind's block: llm4s.agent.checkpointer.<kind>.<name>.

Attributes

def optionalString(name: String): Option[String]

name's value, unless it is absent or blank.

name's value, unless it is absent or blank.

Attributes

def redact(text: String): String

text with every sensitive value (sensitiveValues) replaced by <redacted>.

text with every sensitive value (sensitiveValues) replaced by <redacted>.

Attributes

def sensitiveValues: Vector[String]

The values in this block that may hold a secret, longest first: those of keys whose name mentions a password (pass, pwd), secret, token, credential, auth or key, or a URL, URI or DSN (which can carry credentials in its parameters), and the value of each password= or secret=-like parameter inside any value.

The values in this block that may hold a secret, longest first: those of keys whose name mentions a password (pass, pwd), secret, token, credential, auth or key, or a URL, URI or DSN (which can carry credentials in its parameters), and the value of each password= or secret=-like parameter inside any value.

Attributes

def string(name: String, envVar: Option[String]): Result[String]

name's value, or a ConfigurationError naming the key (and envVar, the variable the module's reference.conf binds to it, when there is one) if it is absent or blank.

name's value, or a ConfigurationError naming the key (and envVar, the variable the module's reference.conf binds to it, when there is one) if it is absent or blank.

Attributes

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

Concrete fields

val extras: Map[String, String]
val kind: String