Class AiServiceFactory
java.lang.Object
io.micronaut.langchain4j.aiservices.AiServiceFactory
An AI services factory.
-
Constructor Summary
ConstructorDescriptionAiServiceFactory
(io.micronaut.context.BeanContext beanContext, ToolRegistry toolRegistry) -
Method Summary
Modifier and TypeMethodDescriptionprotected dev.langchain4j.service.AiServices
<Object> createAiServices
(AiServiceDef<Object> serviceDef) Creates instances ofAiServices
.
-
Constructor Details
-
AiServiceFactory
-
-
Method Details
-
createAiServices
@Bean protected dev.langchain4j.service.AiServices<Object> createAiServices(@Parameter AiServiceDef<Object> serviceDef) Creates instances ofAiServices
.A
BeanCreatedEventListener
can be registered to intercept creation.- Parameters:
serviceDef
- The service definition- Returns:
- The AI services.
-