Class AgentsConfig.BuilderBase.AgentsConfigImpl
- All Implemented Interfaces:
Prototype.Api,AgentsConfig
- Enclosing class:
AgentsConfig.BuilderBase<BUILDER extends AgentsConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends AgentsConfig>
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.integrations.langchain4j.AgentsConfig
AgentsConfig.Builder, AgentsConfig.BuilderBase<BUILDER extends AgentsConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends AgentsConfig> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAgentsConfigImpl(AgentsConfig.BuilderBase<?, ?> builder) Create an instance providing a builder. -
Method Summary
Modifier and TypeMethodDescriptionasync()If true, the agent will be invoked in an asynchronous manner, allowing the workflow to continue without waiting for the agent's result.Name of theChatMemoryservice to use for this agent.Name of theChatMemoryProviderservice to use for this agent.Name of theChatModelservice to use for this agent.Name of theContentRetrieverservice to use for this agent.Description of the agent.booleanenabled()If set tofalse, agent will not be available even if configured.booleanIf true, the agent's tools can be invoked in a concurrent manner.inthashCode()Input guardrail classes to apply to the agent.Names ofMcpClientservices to use for MCP-backed tools.name()Agent identifier used to label the agent in workflows and/or agent registries.Output guardrail classes to apply to the agent.Key of the output variable that will be used to store the result of the agent's invocation.Name of theRetrievalAugmentorservice to use for this agent.Name of theToolProviderservice to use for this agent.tools()Tool service classes to register with the agent.toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.helidon.integrations.langchain4j.AgentsConfig
configure
-
Constructor Details
-
AgentsConfigImpl
Create an instance providing a builder.- Parameters:
builder- extending builder base of this prototype
-
-
Method Details
-
enabled
public boolean enabled()Description copied from interface:AgentsConfigIf set tofalse, agent will not be available even if configured.- Specified by:
enabledin interfaceAgentsConfig- Returns:
- whether agent is enabled, defaults to
true
-
name
Description copied from interface:AgentsConfigAgent 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:
namein interfaceAgentsConfig- Returns:
- configured agent name, or empty if not configured
-
description
Description copied from interface:AgentsConfigDescription 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:
descriptionin interfaceAgentsConfig- Returns:
- description of the agent.
-
outputKey
Description copied from interface:AgentsConfigKey of the output variable that will be used to store the result of the agent's invocation.- Specified by:
outputKeyin interfaceAgentsConfig- Returns:
- name of the output variable.
-
async
Description copied from interface:AgentsConfigIf true, the agent will be invoked in an asynchronous manner, allowing the workflow to continue without waiting for the agent's result.- Specified by:
asyncin interfaceAgentsConfig- Returns:
- true if the agent should be invoked asynchronously, false otherwise.
-
executeToolsConcurrently
Description copied from interface:AgentsConfigIf true, the agent's tools can be invoked in a concurrent manner.- Specified by:
executeToolsConcurrentlyin interfaceAgentsConfig- Returns:
- true if agent's tools can be invoked concurrently.
-
chatModel
Description copied from interface:AgentsConfigName of theChatModelservice to use for this agent.The value is resolved from the
ServiceRegistry.- Specified by:
chatModelin interfaceAgentsConfig- Returns:
- configured name of the chat model service, or empty if not configured
-
chatMemory
Description copied from interface:AgentsConfigName of theChatMemoryservice to use for this agent.The value is resolved from the
ServiceRegistry.- Specified by:
chatMemoryin interfaceAgentsConfig- Returns:
- configured name of the chat memory service, or empty if not configured
-
chatMemoryProvider
Description copied from interface:AgentsConfigName of theChatMemoryProviderservice to use for this agent.The value is resolved from the
ServiceRegistry.- Specified by:
chatMemoryProviderin interfaceAgentsConfig- Returns:
- configured name of the chat memory provider service, or empty if not configured
-
contentRetriever
Description copied from interface:AgentsConfigName of theContentRetrieverservice to use for this agent.The value is resolved from the
ServiceRegistry.- Specified by:
contentRetrieverin interfaceAgentsConfig- Returns:
- configured name of the content retriever service, or empty if not configured
-
retrievalAugmentor
Description copied from interface:AgentsConfigName of theRetrievalAugmentorservice to use for this agent.The value is resolved from the
ServiceRegistry.- Specified by:
retrievalAugmentorin interfaceAgentsConfig- Returns:
- configured name of the retrieval augmentor service, or empty if not configured
-
toolProvider
Description copied from interface:AgentsConfigName of theToolProviderservice to use for this agent.The value is resolved from the
ServiceRegistry.- Specified by:
toolProviderin interfaceAgentsConfig- Returns:
- configured name of the tool provider service, or empty if not configured
-
tools
Description copied from interface:AgentsConfigTool service classes to register with the agent.Each class is resolved from the
ServiceRegistry, and the resulting service instances are registered usingagentBuilder.tools(...).- Specified by:
toolsin interfaceAgentsConfig- Returns:
- configured set of tool classes, or an empty set if not configured
-
mcpClients
Description copied from interface:AgentsConfigNames ofMcpClientservices to use for MCP-backed tools.Each name is resolved from the
ServiceRegistry, the clients are then used to build anMcpToolProviderwhich is registered as the agent's tool provider.- Specified by:
mcpClientsin interfaceAgentsConfig- Returns:
- configured set of MCP client service names, or an empty set if not configured
-
inputGuardrails
Description copied from interface:AgentsConfigInput guardrail classes to apply to the agent.Each class is resolved from the
ServiceRegistry.- Specified by:
inputGuardrailsin interfaceAgentsConfig- Returns:
- configured set of input guardrail classes, or an empty set if not configured
-
outputGuardrails
Description copied from interface:AgentsConfigOutput guardrail classes to apply to the agent.Each class is resolved from the
ServiceRegistry,- Specified by:
outputGuardrailsin interfaceAgentsConfig- Returns:
- configured set of output guardrail classes, or an empty set if not configured
-
toString
-
equals
-
hashCode
public int hashCode()
-