Package dev.langchain4j.agentic.agent
package dev.langchain4j.agentic.agent
-
ClassDescriptionThrown when an agent cannot be used because something it depends on is unavailable, typically the server of a remote agent, like an A2A or an MCP one, from which the agent card or the tool is fetched lazily, the first time it is needed: normally the first invocation of the agent, or the first request of its description when none is configured.Builds a decision agent: an agent of an agentic system whose implementation is a single call to a
DecisionModelinstead of a chat model.The invocation handler of the proxy of a decision agent: it implements the agent method with a call to the decision model, hands the response of the model to theAgentModelResponseof the invocation for the listeners, and answers theAgentInstancemethods.