After you create your new QueryFunction class, you then implement it.
To implement your new QueryFunction, you must:
Your custom function should use the Conversation Service API to apply itself to the conversation service query argument.
The stateName argument provides the value to use for state name references in Conversation Service filters or content element configs that your custom function adds to the query.
toString should be consistent and deterministic in order to accurately determine if two instances of your custom QueryFunction are identical or distinct.