Class AgentConfiguration

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

@EachProperty("langchain4j.agentic.agents") public final class AgentConfiguration extends Object
Configuration for a named agentic service agent.
  • Field Details

  • Constructor Details

    • AgentConfiguration

      public AgentConfiguration(@Parameter String name)
      Parameters:
      name - The agent configuration name
  • Method Details

    • getName

      public String getName()
      Returns:
      The agent configuration name
    • getChatModel

      @Nullable public @Nullable String getChatModel()
      Returns:
      The chat model bean name to use for this agent
    • setChatModel

      public void setChatModel(@Nullable @Nullable String chatModel)
      Parameters:
      chatModel - The chat model bean name to use for this agent
    • getMemory

      Returns:
      The chat memory configuration