in google/generativeai/notebook/lib/llmfn_inputs_source.py [0:0]
def to_normalized_inputs(self, suppress_status_msgs: bool = False) -> NormalizedInputsList:
"""Returns a sequence of normalized inputs.
The return value is a sequence of dictionaries of (placeholder, value)
pairs, e.g. [{"word": "hot"}, {"word: "cold"}, ....]
These are used for keyword-substitution for prompts in LLMFunctions.
Args:
suppress_status_msgs: If True, suppress status messages regarding the
input being read.
Returns:
A sequence of normalized inputs.
"""
if self._cached_inputs is None:
(
self._cached_inputs,
self._display_status_fn,
) = self._to_normalized_inputs_impl()
if not suppress_status_msgs:
self._display_status_fn()
return self._cached_inputs