setupSubgraphWithTask
inline fun <Input, Output, OutputTransformed> AIAgentSubgraphBuilderBase<Input, OutputTransformed>.setupSubgraphWithTask(finishToolDescriptor: ToolDescriptor, noinline defineTask: suspend AIAgentGraphContextBase.(Input) -> String)(source)
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.