BaseNode

class BaseNode(ABC):

Base class for all nodes in the workforce.

Parameters:

  • description (str): Description of the node.

init

def __init__(self, description: str):

reset

def reset(self, *args: Any, **kwargs: Any):

Resets the node to its initial state.

set_channel

def set_channel(self, channel: TaskChannel):

Sets the channel for the node.

stop

def stop(self):

Stop the node.