Soon I will be adding nodes that require info about a risk assessment agent. It would be powerful if we could recognize this agent parameter and then autocomplete user input with it. We could simply hardcode this but a much better option in my opinion would be an extension of the inspection utility. I will add an option for the inspection utility to return a function for each parameter that returns possible values/returns whether some value is valid (Probably both). Where it gets complicated is when the checked parameter is the agent's thershold calculator name which requires the agent name. We have to come up with some convention for this such cases. I think something like:
def testParamNameValue(ParamName, DependencyParamName1, DependencyParamName2, ....):
pass
def getValuesForParamName(DependencyParamName1, DependencyParamName2, ....):
pass
In any case where getValuesForParamName is not defined then we assume that its can get any value(at least the UI should assume)
@erasta let me know if this sounds good. It seems equally demanding to implement both on the UI end and Hermes so I want to make sure it is well formulated first.
Soon I will be adding nodes that require info about a risk assessment agent. It would be powerful if we could recognize this agent parameter and then autocomplete user input with it. We could simply hardcode this but a much better option in my opinion would be an extension of the inspection utility. I will add an option for the inspection utility to return a function for each parameter that returns possible values/returns whether some value is valid (Probably both). Where it gets complicated is when the checked parameter is the agent's thershold calculator name which requires the agent name. We have to come up with some convention for this such cases. I think something like:
In any case where
getValuesForParamNameis not defined then we assume that its can get any value(at least the UI should assume)@erasta let me know if this sounds good. It seems equally demanding to implement both on the UI end and Hermes so I want to make sure it is well formulated first.