LangfuseConfigLoader

org.llm4s.config.LangfuseConfigLoader

Loads org.llm4s.llmconnect.config.LangfuseConfig from llm4s.tracing.langfuse, whatever TRACING_MODE selects.

The tracing backend does not need this: with TRACING_MODE=langfuse the block reaches it as TracingSettings.extras. This is for code that talks to Langfuse alongside another tracer - RAGASLangfuseObserver in llm4s-rag, or a TracingComposer.combine of Langfuse with Console:

for
 langfuse <- LangfuseConfigLoader.default()
yield TracingComposer.combine(LangfuseTracing.from(langfuse), new ConsoleTracing())

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

load against the current environment: system properties, application.conf and every reference.conf.

load against the current environment: system properties, application.conf and every reference.conf.

Attributes

def load(source: ConfigSource): Result[LangfuseConfig]

Reads llm4s.tracing.langfuse from source; an absent block gives the defaults.

Reads llm4s.tracing.langfuse from source; an absent block gives the defaults.

Attributes

Returns

the config, or a org.llm4s.error.ConfigurationError when llm4s.tracing.langfuse is set to something other than an object.