execute

open suspend override fun execute(context: AIAgentGraphContextBase, input: TInput): TOutput(source)

Executes a specific operation based on the given context and input.

Implementations may return null to indicate that no output is produced for the current invocation (for example, when the execution was interrupted and is expected to be resumed later). Plain node implementations such as SimpleAIAgentNodeImpl always return a non-null TOutput.

Return

The result of the execution as TOutput, or null if no output is produced.

Parameters

context

The execution context that provides necessary runtime information and functionality.

input

The input data required to perform the execution.