promptflow.contracts.run_mode module#

class promptflow.contracts.run_mode.RunMode(value)#

Bases: str, Enum

An enumeration of possible run modes.

Batch = 'Batch'#
SingleNode = 'SingleNode'#
Test = 'Test'#
classmethod parse(value: str)#

Parse a string to a RunMode enum value.

Parameters:

value (str) – The string to parse.

Returns:

The corresponding RunMode enum value.

Return type:

RunMode

Raises:

ValueError – If the value is not a valid string.