Llm4sAutoConfiguration

org.llm4s.spring.Llm4sAutoConfiguration
See theLlm4sAutoConfiguration companion object
@AutoConfiguration(value = _, before = _, beforeName = _, after = _, afterName = _) @Configuration(value = _, proxyBeanMethods = _, enforceUniqueMethods = _) @ConditionalOnClass(value = _, name = scala.Array.apply[java.lang.String]("org.llm4s.javaapi.Llm4s$")(scala.reflect.ClassTag.apply[java.lang.String](classOf[java.lang.String]))) @ConditionalOnProperty(value = _, prefix = "llm4s", name = scala.Array.apply[java.lang.String]("enabled")(scala.reflect.ClassTag.apply[java.lang.String](classOf[java.lang.String])), havingValue = "true", matchIfMissing = true) @EnableConfigurationProperties(value = scala.Array.apply[java.lang.Class[_ >: scala.Nothing <: . ]](scala.Predef.classOf[org.llm4s.spring.Llm4sProperties])(scala.reflect.ClassTag.apply[java.lang.Class[_ >: scala.Nothing <: . ]](classOf[java.lang.Class])))

Attributes

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

Members list

Value members

Concrete methods

@Bean(value = _, name = _, autowireCandidate = _, defaultCandidate = _, bootstrap = _, initMethod = _, destroyMethod = _) @ConditionalOnMissingBean(value = _, type = _, ignored = _, ignoredType = _, annotation = _, name = _, search = _, parameterizedContainer = _) @ConditionalOnProperty(value = _, prefix = "llm4s.agent", name = scala.Array.apply[java.lang.String]("enabled")(scala.reflect.ClassTag.apply[java.lang.String](classOf[java.lang.String])), havingValue = "true", matchIfMissing = true)
def llm4sAgent(client: JLlmClient, tools: Llm4sTools, checkpointer: Checkpointer, tracing: ObjectProvider[Tracing], properties: Llm4sProperties, @Qualifier(value = org.llm4s.spring.Llm4sExecutors.BeanName) executor: ExecutorService): JAgent

An agent over the client and the collected tools, configured by llm4s.agent.* (#2279), its threads in the Checkpointer bean, reporting to the Tracing bean when there is one, its runAsync calls on the llm4sTaskExecutor. A bean of type JAgent replaces it; llm4s.agent.enabled=false registers none.

An agent over the client and the collected tools, configured by llm4s.agent.* (#2279), its threads in the Checkpointer bean, reporting to the Tracing bean when there is one, its runAsync calls on the llm4sTaskExecutor. A bean of type JAgent replaces it; llm4s.agent.enabled=false registers none.

Attributes

Source
Llm4sAutoConfiguration.scala
@Bean(value = _, name = _, autowireCandidate = _, defaultCandidate = _, bootstrap = _, initMethod = _, destroyMethod = _) @ConditionalOnMissingBean(value = _, type = _, ignored = _, ignoredType = _, annotation = _, name = _, search = _, parameterizedContainer = _) @ConditionalOnProperty(value = _, prefix = "llm4s.agent", name = scala.Array.apply[java.lang.String]("enabled")(scala.reflect.ClassTag.apply[java.lang.String](classOf[java.lang.String])), havingValue = "true", matchIfMissing = true)

Where the llm4sAgent keeps its threads between turns (#2279): in memory. A bean of type Checkpointer, such as llm4s-agent-checkpoint-sqlite's or -postgres's, replaces it; llm4s.agent.enabled=false registers none.

Where the llm4sAgent keeps its threads between turns (#2279): in memory. A bean of type Checkpointer, such as llm4s-agent-checkpoint-sqlite's or -postgres's, replaces it; llm4s.agent.enabled=false registers none.

Attributes

Source
Llm4sAutoConfiguration.scala
@Bean(value = _, name = _, autowireCandidate = _, defaultCandidate = _, bootstrap = _, initMethod = _, destroyMethod = _) @ConditionalOnMissingBean(value = _, type = _, ignored = _, ignoredType = _, annotation = _, name = _, search = _, parameterizedContainer = _)
def llm4sClient(properties: Llm4sProperties, environment: ConfigurableEnvironment, metrics: ObjectProvider[MetricsCollector]): JLlmClient

The client, reporting its calls to every MetricsCollector bean in the context: the Micrometer one LlmMetricsAutoConfiguration registers, any of the application's own, or none.

The client, reporting its calls to every MetricsCollector bean in the context: the Micrometer one LlmMetricsAutoConfiguration registers, any of the application's own, or none.

Attributes

Source
Llm4sAutoConfiguration.scala
@Bean(value = _, name = _, autowireCandidate = _, defaultCandidate = _, bootstrap = _, initMethod = _, destroyMethod = _) @ConditionalOnMissingBean(value = _, type = _, ignored = _, ignoredType = _, annotation = _, name = _, search = _, parameterizedContainer = _) @ConditionalOnProperty(value = _, prefix = "llm4s.embeddings", name = scala.Array.apply[java.lang.String]("model")(scala.reflect.ClassTag.apply[java.lang.String](classOf[java.lang.String])), havingValue = _, matchIfMissing = _)
def llm4sEmbeddingClient(environment: ConfigurableEnvironment, @Qualifier(value = org.llm4s.spring.Llm4sExecutors.BeanName) executor: ExecutorService): JEmbeddingClient

The embedding client llm4s.embeddings.* configures (#2279): registered when llm4s.embeddings.model is set, its embedAsync calls on the llm4sTaskExecutor. A bean of type JEmbeddingClient replaces it.

The embedding client llm4s.embeddings.* configures (#2279): registered when llm4s.embeddings.model is set, its embedAsync calls on the llm4sTaskExecutor. A bean of type JEmbeddingClient replaces it.

Attributes

Source
Llm4sAutoConfiguration.scala
@Bean(value = _, name = _, autowireCandidate = _, defaultCandidate = _, bootstrap = _, initMethod = _, destroyMethod = "shutdownNow") @ConditionalOnMissingBean(value = _, type = _, ignored = _, ignoredType = _, annotation = _, name = scala.Array.apply[java.lang.String](org.llm4s.spring.Llm4sExecutors.BeanName)(scala.reflect.ClassTag.apply[java.lang.String](classOf[java.lang.String])), search = _, parameterizedContainer = _)

Attributes

Source
Llm4sAutoConfiguration.scala
@Bean(value = _, name = _, autowireCandidate = _, defaultCandidate = _, bootstrap = _, initMethod = _, destroyMethod = _) @ConditionalOnMissingBean(value = _, type = _, ignored = _, ignoredType = _, annotation = _, name = _, search = _, parameterizedContainer = _)
def llm4sTemplate(client: JLlmClient, @Qualifier(value = org.llm4s.spring.Llm4sExecutors.BeanName) executor: ExecutorService): LLM4STemplate

Attributes

Source
Llm4sAutoConfiguration.scala
@Bean(value = _, name = _, autowireCandidate = _, defaultCandidate = _, bootstrap = _, initMethod = _, destroyMethod = _) @ConditionalOnMissingBean(value = _, type = _, ignored = _, ignoredType = _, annotation = _, name = _, search = _, parameterizedContainer = _)
def llm4sTools(beans: ConfigurableListableBeanFactory): Llm4sTools

The @Tool methods of the application's beans (#2279); a bean of type Llm4sTools replaces them.

The @Tool methods of the application's beans (#2279); a bean of type Llm4sTools replaces them.

Attributes

Source
Llm4sAutoConfiguration.scala
@Bean(value = _, name = _, autowireCandidate = _, defaultCandidate = _, bootstrap = _, initMethod = _, destroyMethod = "shutdown") @ConditionalOnMissingBean(value = _, type = _, ignored = _, ignoredType = _, annotation = _, name = _, search = _, parameterizedContainer = _) @ConditionalOnProperty(value = _, prefix = "llm4s.tracing", name = scala.Array.apply[java.lang.String]("mode")(scala.reflect.ClassTag.apply[java.lang.String](classOf[java.lang.String])), havingValue = _, matchIfMissing = _)
def llm4sTracing(environment: ConfigurableEnvironment): Tracing

The tracer llm4s.tracing.* configures (#2279), which the llm4sAgent reports to: registered when llm4s.tracing.mode is set, for console, none or the mode of a TracingBackend on the classpath, such as llm4s-observability-otel's opentelemetry. A mode no backend serves fails startup. A bean of type Tracing replaces it.

The tracer llm4s.tracing.* configures (#2279), which the llm4sAgent reports to: registered when llm4s.tracing.mode is set, for console, none or the mode of a TracingBackend on the classpath, such as llm4s-observability-otel's opentelemetry. A mode no backend serves fails startup. A bean of type Tracing replaces it.

Attributes

Source
Llm4sAutoConfiguration.scala