javaNonSuspendTransformed

Transforms the intermediate output of the ai.koog.agents.core.agent.entity.AIAgentNode by applying a given transformation block.

Return

A new instance of AIAgentEdgeBuilderIntermediate with the transformed intermediate output type.

Parameters

block

A lambda that defines the transformation to be applied to the intermediate output. It takes the AI agent's context and the intermediate output as parameters and returns a new intermediate output.


Applies a transformation to the intermediate output of the AIAgentNode without requiring additional context.

Return

A new instance of AIAgentEdgeBuilderIntermediate with the intermediate output type replaced by NewIntermediateOutput.

Parameters

block

A functional parameter representing the transformation to be applied. It takes an intermediate output of type IntermediateOutput and returns a transformed output of type NewIntermediateOutput.