Class AgentCondition
java.lang.Object
dev.langchain4j.agentic.planner.AgentCondition
A described predicate on the
AgenticScope deciding whether an agent runs. It can be evaluated more than once
for a single invocation of the agent, so it must be cheap and free of side effects.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()booleantest(AgenticScope agenticScope) toString()
-
Constructor Details
-
AgentCondition
- Parameters:
description- a human-readable description of the condition, shown in logs, listeners and reports, and sent to the model of a supervisor when it skips the agentpredicate- the predicate evaluated on theAgenticScope
-
-
Method Details
-
description
-
predicate
-
test
-
equals
-
hashCode
-
toString
-