How to access param added via register_action_param
#499
-
Seems like this must be simple but the docs show an example of Let's say I have an existing action called async def start_round(db, user_id, context: Optional[dict] = None): If I define it as one of the parameters to the action like above, I get the error: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @rgstephens ! The parameters that are registered using If you're getting the error above, it looks like the registration did not take place correctly. Can you share a minimal example to reproduce this. Thanks! |
Beta Was this translation helpful? Give feedback.
Hi @rgstephens !
The parameters that are registered using
register_action_param
are passed automatically to the actions when they are invoked. You can think of them as keyword parameters with default values in Python.If you're getting the error above, it looks like the registration did not take place correctly. Can you share a minimal example to reproduce this. Thanks!