MCPcopy
hub / github.com/RasaHQ/rasa / _add_inputs_to_graph

Method _add_inputs_to_graph

rasa/engine/runner/dask.py:107–118  ·  view source on GitHub ↗
(inputs: Optional[Dict[Text, Any]], graph: Any)

Source from the content-addressed store, hash-verified

105
106 @staticmethod
107 def _add_inputs_to_graph(inputs: Optional[Dict[Text, Any]], graph: Any) -> None:
108 if inputs is None:
109 return
110
111 for input_name, input_value in inputs.items():
112 if isinstance(input_value, str) and input_value in graph.keys():
113 raise GraphRunError(
114 f"Input value '{input_value}' clashes with a node name. Make sure "
115 f"that none of the input names passed to the `run` method are the "
116 f"same as node names in the graph schema."
117 )
118 graph[input_name] = (input_name, input_value)

Callers 1

runMethod · 0.95

Calls 3

GraphRunErrorClass · 0.90
itemsMethod · 0.80
keysMethod · 0.45

Tested by

no test coverage detected