Annotation Interface AgenticService
Registers a LangChain4j declarative agentic service using AgenticServices.createAgenticSystem(Class, ...).
Apply on an interface that declares methods annotated with dev.langchain4j.agentic.Agent
(and optionally @UserMessage, @V) and workflow annotations as described in LangChain4j Agentic docs.
Chat models, memory and tools are wired via Micronaut DI; no sub-agent array is required.
-
Optional Element Summary
Optional Elements
-
Element Details
-
value
-
named
The name of a configured AI model to use (qualifier). Typically matches a ChatModel bean name configured via other Micronaut-LangChain4j modules.- Returns:
- The model bean name (qualifier)
- Default:
""
-
tools
Class<?>[] toolsTool types to include for this agent. An empty array means no tools will be registered explicitly.- Returns:
- The tool types
- Default:
{}
-
outputKey
-