MRKL systems dispatch a query to a module and return the module's output. A router with a fallback to the language model covers every query, whether or not an expert applies.
Implement dispatch(query, routes, fallback), running the first matching route or the fallback.
Find the first route whose keyword matches the lowercased query and call it with the original query; otherwise call the fallback.
No results yet
Run your code to check it against the examples, or submit to run every test.