Class AgenticServiceFactory
java.lang.Object
io.micronaut.langchain4j.agentic.AgenticServiceFactory
Factory for building LangChain4j agentic service proxies.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected dev.langchain4j.agentic.agent.AgentBuilderagentBuilder(Class<?> agentServiceClass) buildAgenticService(io.micronaut.context.BeanContext beanContext, AgenticServiceInfo<Object> serviceDef) Build the agentic service for the given definition.protected dev.langchain4j.agentic.workflow.ConditionalAgentServiceconditionalAgentService(@Nullable Class<?> agentServiceClass) protected dev.langchain4j.agentic.workflow.LoopAgentServiceloopAgentService(@Nullable Class<?> agentServiceClass) protected dev.langchain4j.agentic.workflow.ParallelAgentServiceparallelAgentService(@Nullable Class<?> agentServiceClass) protected dev.langchain4j.agentic.workflow.ParallelMapperServiceparallelMapperService(@Nullable Class<?> agentServiceClass) protected dev.langchain4j.agentic.workflow.SequentialAgentServicesequentialAgentService(@Nullable Class<?> agentServiceClass)
-
Field Details
-
AGENTIC_CONFIG_PREFIX
- See Also:
-
-
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 BeanContextserviceDef- 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)
-