Try the close_ticket action and check whether it is on the list.
allowed = {"read_ticket"}
action = "read_ticket"
print(action in allowed) Line notes
- Store the action available to the assistant.
- Choose an action to check.
- Print whether the action is allowed.