NeMo-Guardrails icon indicating copy to clipboard operation
NeMo-Guardrails copied to clipboard

Documentation of how to fetch an action param

Open joeywhelan opened this issue 1 year ago • 1 comments

I see an example here on how to 'set' an action param, but I can't find any mention of how to subsequently 'get' it in an action function.

joeywhelan avatar Feb 13 '24 13:02 joeywhelan

Thanks for pointing this @joeywhelan! Indeed, we should update the docs. You have to declare a parameter for your action which has exactly the same name as the one you registered.

drazvan avatar Feb 13 '24 14:02 drazvan