Class AgenticServiceFactory

java.lang.Object
io.micronaut.langchain4j.agentic.AgenticServiceFactory

@Factory public final class AgenticServiceFactory extends Object
Factory for building LangChain4j agentic service proxies.
  • Field Details

  • Constructor Details

    • AgenticServiceFactory

      public AgenticServiceFactory()
  • Method Details

    • buildAgenticService

      public Object buildAgenticService(io.micronaut.context.BeanContext beanContext, AgenticServiceInfo<Object> serviceDef)
      Build the agentic service for the given definition.
      Parameters:
      beanContext - Micronaut BeanContext
      serviceDef - Service definition information for building an agentic proxy
      Returns:
      the agentic proxy
    • agentBuilder

      @Bean protected dev.langchain4j.agentic.agent.AgentBuilder agentBuilder(@Parameter Class<?> agentServiceClass)
    • sequentialAgentService

      @Bean protected dev.langchain4j.agentic.workflow.SequentialAgentService sequentialAgentService(@Nullable @Parameter @Nullable Class<?> agentServiceClass)
    • parallelAgentService

      @Bean protected dev.langchain4j.agentic.workflow.ParallelAgentService parallelAgentService(@Nullable @Parameter @Nullable Class<?> agentServiceClass)
    • parallelMapperService

      @Bean protected dev.langchain4j.agentic.workflow.ParallelMapperService parallelMapperService(@Nullable @Parameter @Nullable Class<?> agentServiceClass)
    • loopAgentService

      @Bean protected dev.langchain4j.agentic.workflow.LoopAgentService loopAgentService(@Nullable @Parameter @Nullable Class<?> agentServiceClass)
    • conditionalAgentService

      @Bean protected dev.langchain4j.agentic.workflow.ConditionalAgentService conditionalAgentService(@Nullable @Parameter @Nullable Class<?> agentServiceClass)