RuntimeConfigLoader

org.llm4s.config.RuntimeConfigLoader
@Experimental

Loads a GraphRuntime's policies from llm4s.agent.runtime at the application's edge (design 4.54): how its runs hold their threads' claims (ClaimPolicy, claims) and how its subscriptions watch the store for commits made elsewhere (WatchPolicy, watch). llm4s-agent's reference.conf holds the defaults, which are the policies' own, and binds claims.label to LLM4S_RUNTIME_LABEL, so each instance of a service can name itself in the logs (a pod name, say).

llm4s.agent.runtime {
 claims { ttl = 30 seconds, renewEvery = 10 seconds, label = "worker-1" }
 watch  { enabled = true, pollInterval = 250 milliseconds }
}

A value a policy refuses is a ConfigurationError naming the key.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

The claim policy from system properties, application.conf and every reference.conf.

The claim policy from system properties, application.conf and every reference.conf.

Attributes

def runtime(checkpointer: Checkpointer): Result[GraphRuntime]

A runtime over checkpointer, on the system clock, with the configured claim and watch policies.

A runtime over checkpointer, on the system clock, with the configured claim and watch policies.

Attributes

The watch policy from system properties, application.conf and every reference.conf.

The watch policy from system properties, application.conf and every reference.conf.

Attributes

Concrete fields

val Path: String

The configuration path of the runtime settings.

The configuration path of the runtime settings.

Attributes