Description
Configuration for a single LangChain4j agent.
Usages
Configuration options
| Key | Kind | Type | Default Value | Description |
|---|
async | VALUE | Boolean | | If true, the agent will be invoked in an asynchronous manner, allowing the workflow to continue without waiting for the agent's result |
chat-memory | VALUE | String | | Name of the dev.langchain4j.memory.ChatMemory service to use for this agent |
chat-memory-provider | VALUE | String | | Name of the dev.langchain4j.memory.chat.ChatMemoryProvider service to use for this agent |
chat-model | VALUE | String | | Name of the dev.langchain4j.model.chat.ChatModel service to use for this agent |
content-retriever | VALUE | String | | Name of the dev.langchain4j.rag.content.retriever.ContentRetriever service to use for this agent |
description | VALUE | String | | Description of the agent |
enabled | VALUE | Boolean | true | If set to false, agent will not be available even if configured |
execute-tools-concurrently | VALUE | Boolean | | If true, the agent's tools can be invoked in a concurrent manner |
input-guardrails | LIST | Class | | Input guardrail classes to apply to the agent |
mcp-clients | LIST | String | | Names of dev.langchain4j.mcp.client.McpClient services to use for MCP-backed tools |
name | VALUE | String | | Agent identifier used to label the agent in workflows and/or agent registries |
output-guardrails | LIST | Class | | Output guardrail classes to apply to the agent |
output-key | VALUE | String | | Key of the output variable that will be used to store the result of the agent's invocation |
retrieval-augmentor | VALUE | String | | Name of the dev.langchain4j.rag.RetrievalAugmentor service to use for this agent |
tool-provider | VALUE | String | | Name of the dev.langchain4j.service.tool.ToolProvider service to use for this agent |
tools | LIST | Class | | Tool service classes to register with the agent |
See the manifest for all available types.