metaprompting.action.HistoryAction
- class metaprompting.action.HistoryAction[source]
Bases:
Action
An executable node that takes zero or more input_states, executes an action, and returns its output to the output_state.
- Parameters:
input_states – Iterable over input
State
soutput_state – Output
State
Public Methods:
__init__
()An executable node that takes zero or more input_states, executes an action, and returns its output to the output_state.
execute
()Inherited from
Action
__init__
()An executable node that takes zero or more input_states, executes an action, and returns its output to the output_state.
block
([state])add_input_states
(states)set_output_state
(state[, force])input_trigger
(input)Trigger the
Action
from a specific input, typically when the input has been updated.execute
()Private Methods:
- __abstractmethods__ = frozenset({})
- __annotations__ = {}
- __dict__ = mappingproxy({'__module__': 'metaprompting.action', '__init__': <function HistoryAction.__init__>, 'execute': <function HistoryAction.execute>, '__doc__': None, '__abstractmethods__': frozenset(), '_abc_impl': <_abc._abc_data object>, '__annotations__': {}})
- __init__()[source]
An executable node that takes zero or more input_states, executes an action, and returns its output to the output_state.
- Parameters:
input_states – Iterable over input
State
soutput_state – Output
State
- __module__ = 'metaprompting.action'
- __slots__ = ()
- __weakref__
list of weak references to the object (if defined)
- _abc_impl = <_abc._abc_data object>
- add_input_states(states)
- block(state=True)
- input_trigger(input)
Trigger the
Action
from a specific input, typically when the input has been updated.- Parameters:
input – input
State
- set_output_state(state, force=False)