onBeforeNode
Append handler called before a node in the agent's execution graph is processed.
var onBeforeNode: suspend (node: AIAgentNodeBase<*, *>, context: AIAgentContextBase, input: Any?) -> Unit(source)
Deprecated
Please use onBeforeNode() instead
Replace with
onBeforeNode(handler)
Content copied to clipboard
A handler invoked before a node in the agent's execution graph is processed.
This property is deprecated and should be replaced with the onBeforeNode
method. It accepts a suspend function that takes the following parameters:
node
: The node being processed.context
: The context in which the node is being executed.input
: The input provided to the node.
Deprecated: Use the onBeforeNode(handler)
method for appending handlers to the event.