Closed glennrfisher closed 7 years ago
Hmm... this might not work well if only a single AlchemyLanguage.Options
enum was defined. Some options are only valid for particular functions (e.g. knowledgeGraph
is an acceptable parameter in many of the endpoints, but coreference
is not). With only a single enum
, that couldn't be expressed in code and checked by the compiler.
An OptionSet (or something akin to
[AlchemyLanguage.Options]
) may be a useful way for users to declare various options without having an exhaustive set of arguments.For example, instead of:
This could instead be expressed as:
Which could be called as such: