flowno.decorators.multiple_output

Multiple output node creation utilities for Flowno.

This module provides utilities for creating multiple output nodes, which are used internally by the flowno.decorators.node module. These utilities help transform async functions or classes into DraftNode subclasses with multiple outputs.

For more information and examples, see the flowno.decorators.node module.

flowno.decorators.multiple_output.create_func_node_factory_multiple(func: Callable[[Unpack], Coroutine[object, object, ReturnTupleT_co]] | Callable[[Unpack], AsyncGenerator[ReturnTupleT_co, None]], stream_in: list[str]) type[DraftNode[Unpack, ReturnTupleT_co]][source]

Create a DraftNode subclass for a function with multiple outputs.

Parameters:
  • func – The function to transform

  • stream_in – List of input streams

Returns:

A DraftNode subclass