metaprompting.graph.Conversation

class metaprompting.graph.Conversation(input_state=None, output_state=None, multiline=False, states=(), actions=())[source]

Bases: Graph

Public Methods:

__init__([input_state, output_state, ...])

run([n_interactions, pre_input_callback, ...])

Inherited from Graph

__init__([states, actions])

add_states(states)

add_actions(actions)

connect_action(input_nodes, action, output_node)

Private Methods:

Inherited from Graph

_assert_is_node(node[, add])


__annotations__ = {}
__dict__ = mappingproxy({'__module__': 'metaprompting.graph', '__init__': <function Conversation.__init__>, 'run': <function Conversation.run>, '__doc__': None, '__annotations__': {}})
__init__(input_state=None, output_state=None, multiline=False, states=(), actions=())[source]
__module__ = 'metaprompting.graph'
__weakref__

list of weak references to the object (if defined)

_assert_is_node(node, add=False)
add_actions(actions)
add_states(states)
connect_action(input_nodes, action, output_node, force=False, add=False)
run(n_interactions=None, pre_input_callback=None, post_input_callback=None, post_response_callback=None)[source]