nbaldwin's picture
Readme + demo
f420448
|
raw
history blame
1.36 kB
metadata
license: mit

Table of Contents

fixed_reply

FixedReplyFlow Objects

class FixedReplyFlow(AtomicFlow)

This class implements a FixedReplyFlow. It's used to reply with a fixed reply.

Configuration Parameters:

  • name (str): The name of the flow.

  • description (str): A description of the flow. This description is used to generate the help message of the flow.

  • fixed_reply (str): The fixed reply to reply with.

  • The other configuration parameters are inherited from the default configuration of AtomicFlow (see AtomicFlow)

Input Interface:

  • None

Output Interface:

  • fixed_reply (str): The fixed reply.

Arguments:

  • \**kwargs (Dict[str, Any]): The keyword arguments passed to the AtomicFlow constructor. Among these is the flow_config which should also contain the "fixed_reply" key.

run

def run(input_data: Dict[str, Any]) -> Dict[str, Any]

Runs the FixedReplyFlow. It's used to reply with a fixed reply.

Arguments:

  • input_data (Dict[str, Any]): The input data dictionary

Returns:

Dict[str, Any]: The fixed reply