Class AgentsConfig.BuilderBase.AgentsConfigImpl

java.lang.Object
io.helidon.integrations.langchain4j.AgentsConfig.BuilderBase.AgentsConfigImpl
All Implemented Interfaces:
Prototype.Api, AgentsConfig
Enclosing class:
AgentsConfig.BuilderBase<BUILDER extends AgentsConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends AgentsConfig>

protected static class AgentsConfig.BuilderBase.AgentsConfigImpl extends Object implements AgentsConfig
Generated implementation of the prototype, can be extended by descendant prototype implementations.
  • Constructor Details

    • AgentsConfigImpl

      protected AgentsConfigImpl(AgentsConfig.BuilderBase<?,?> builder)
      Create an instance providing a builder.
      Parameters:
      builder - extending builder base of this prototype
  • Method Details

    • enabled

      public boolean enabled()
      Description copied from interface: AgentsConfig
      If set to false, agent will not be available even if configured.
      Specified by:
      enabled in interface AgentsConfig
      Returns:
      whether agent is enabled, defaults to true
    • name

      public Optional<String> name()
      Description copied from interface: AgentsConfig
      Agent identifier used to label the agent in workflows and/or agent registries.

      If configured, this value is applied to the underlying agent builder via agentBuilder.name(...).

      Specified by:
      name in interface AgentsConfig
      Returns:
      configured agent name, or empty if not configured
    • description

      public Optional<String> description()
      Description copied from interface: AgentsConfig
      Description of the agent. It should be clear and descriptive to allow a language model to understand the agent's purpose and its intended use.
      Specified by:
      description in interface AgentsConfig
      Returns:
      description of the agent.
    • outputKey

      public Optional<String> outputKey()
      Description copied from interface: AgentsConfig
      Key of the output variable that will be used to store the result of the agent's invocation.
      Specified by:
      outputKey in interface AgentsConfig
      Returns:
      name of the output variable.
    • async

      public Optional<Boolean> async()
      Description copied from interface: AgentsConfig
      If true, the agent will be invoked in an asynchronous manner, allowing the workflow to continue without waiting for the agent's result.
      Specified by:
      async in interface AgentsConfig
      Returns:
      true if the agent should be invoked asynchronously, false otherwise.
    • executeToolsConcurrently

      public Optional<Boolean> executeToolsConcurrently()
      Description copied from interface: AgentsConfig
      If true, the agent's tools can be invoked in a concurrent manner.
      Specified by:
      executeToolsConcurrently in interface AgentsConfig
      Returns:
      true if agent's tools can be invoked concurrently.
    • chatModel

      public Optional<String> chatModel()
      Description copied from interface: AgentsConfig
      Name of the ChatModel service to use for this agent.

      The value is resolved from the ServiceRegistry.

      Specified by:
      chatModel in interface AgentsConfig
      Returns:
      configured name of the chat model service, or empty if not configured
    • chatMemory

      public Optional<String> chatMemory()
      Description copied from interface: AgentsConfig
      Name of the ChatMemory service to use for this agent.

      The value is resolved from the ServiceRegistry.

      Specified by:
      chatMemory in interface AgentsConfig
      Returns:
      configured name of the chat memory service, or empty if not configured
    • chatMemoryProvider

      public Optional<String> chatMemoryProvider()
      Description copied from interface: AgentsConfig
      Name of the ChatMemoryProvider service to use for this agent.

      The value is resolved from the ServiceRegistry.

      Specified by:
      chatMemoryProvider in interface AgentsConfig
      Returns:
      configured name of the chat memory provider service, or empty if not configured
    • contentRetriever

      public Optional<String> contentRetriever()
      Description copied from interface: AgentsConfig
      Name of the ContentRetriever service to use for this agent.

      The value is resolved from the ServiceRegistry.

      Specified by:
      contentRetriever in interface AgentsConfig
      Returns:
      configured name of the content retriever service, or empty if not configured
    • retrievalAugmentor

      public Optional<String> retrievalAugmentor()
      Description copied from interface: AgentsConfig
      Name of the RetrievalAugmentor service to use for this agent.

      The value is resolved from the ServiceRegistry.

      Specified by:
      retrievalAugmentor in interface AgentsConfig
      Returns:
      configured name of the retrieval augmentor service, or empty if not configured
    • toolProvider

      public Optional<String> toolProvider()
      Description copied from interface: AgentsConfig
      Name of the ToolProvider service to use for this agent.

      The value is resolved from the ServiceRegistry.

      Specified by:
      toolProvider in interface AgentsConfig
      Returns:
      configured name of the tool provider service, or empty if not configured
    • tools

      public Set<Class<?>> tools()
      Description copied from interface: AgentsConfig
      Tool service classes to register with the agent.

      Each class is resolved from the ServiceRegistry, and the resulting service instances are registered using agentBuilder.tools(...).

      Specified by:
      tools in interface AgentsConfig
      Returns:
      configured set of tool classes, or an empty set if not configured
    • mcpClients

      public Set<String> mcpClients()
      Description copied from interface: AgentsConfig
      Names of McpClient services to use for MCP-backed tools.

      Each name is resolved from the ServiceRegistry, the clients are then used to build an McpToolProvider which is registered as the agent's tool provider.

      Specified by:
      mcpClients in interface AgentsConfig
      Returns:
      configured set of MCP client service names, or an empty set if not configured
    • inputGuardrails

      public Set<Class<? extends dev.langchain4j.guardrail.InputGuardrail>> inputGuardrails()
      Description copied from interface: AgentsConfig
      Input guardrail classes to apply to the agent.

      Each class is resolved from the ServiceRegistry.

      Specified by:
      inputGuardrails in interface AgentsConfig
      Returns:
      configured set of input guardrail classes, or an empty set if not configured
    • outputGuardrails

      public Set<Class<? extends dev.langchain4j.guardrail.OutputGuardrail>> outputGuardrails()
      Description copied from interface: AgentsConfig
      Output guardrail classes to apply to the agent.

      Each class is resolved from the ServiceRegistry,

      Specified by:
      outputGuardrails in interface AgentsConfig
      Returns:
      configured set of output guardrail classes, or an empty set if not configured
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object