onAfterNode
Append handler called after a node in the agent's execution graph has been processed.
var onAfterNode: suspend (node: AIAgentNodeBase<*, *>, context: AIAgentContextBase, input: Any?, output: Any?) -> Unit(source)
Deprecated
Please use onAfterNode() instead
Replace with
onAfterNode(handler)
Content copied to clipboard
A deprecated variable used to define a handler that is called after a node in the agent's execution graph has been processed.
The handler is a suspend function that receives the following parameters:
node
: The node that was processed, represented by an instance ofAIAgentNodeBase
.context
: The context of the agent containing relevant execution state and data.input
: The input passed to the node during processing.output
: The output produced after the node was processed.
It is recommended to use the function onAfterNode(handler)
to set the handler, as this variable is deprecated.