javaNonSuspendOnCondition
Filters the intermediate outputs of the ai.koog.agents.core.agent.entity.AIAgentNode based on a specified condition.
Return
A new instance of AIAgentEdgeBuilderIntermediate that includes only the filtered intermediate outputs satisfying the specified condition.
Parameters
A lambda function that takes the AI agent's context (AIAgentGraphContextBase) and an intermediate output (IntermediateOutput) as parameters. It returns true if the given intermediate output satisfies the condition, and false otherwise.
Filters the intermediate outputs of the AIAgentNode based on a specified condition.
Return
A new instance of AIAgentEdgeBuilderIntermediate that includes only the filtered intermediate outputs satisfying the specified condition.
Parameters
A lambda function that takes an intermediate output as a parameter. It returns true if the given intermediate output satisfies the condition, and false otherwise.