nemoguardrails.rails.llm.utils
Module Contents
Functions
API
Get the action name and parameters from the flow id.
First, try to find an exact match. If not found, then if the provided flow_id starts with one of the special prefixes, return the first flow whose id starts with that same prefix.
Compute the cache key for a sequence of messages.
Parameters:
messages
The list of messages.
Returns: str
A unique string that can be used as a key for the provided sequence of messages.