setupSubgraphWithTask

Configures a subgraph within the AI agent framework, associating it with required tasks and operations.

FOR INTERNAL USAGE ONLY!

Parameters

finishToolDescriptor

A descriptor for the tool that determines the condition to finalize the subgraph's operation.

defineTask

A suspending lambda that defines the main task of the subgraph, producing a task description based on the input.