When Actions fail #1578
-
I'm really impressed with the way the Bot can infer parameters for my Actions: I'm using it to manipulate a 3D scene in the Teams Stage. In an industrial simulation I can say "Hide the robot" and it will change the visibility of the robot model by triggering the 'Hide' command with the 'part' parameter set to "robot". The response is something like: "I've hidden the robot". Exactly what is the return My action code is more or less:
Do I need to use a Steve |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
If you're using the sequence augmentation the planner will generate the plan in it's entirety. And sometimes it will include a command to say to the user "I've hidden the cauliflower" even before the "HidePart" executes. Here are a few options to resolve this:
|
Beta Was this translation helpful? Give feedback.
If you're using the sequence augmentation the planner will generate the plan in it's entirety. And sometimes it will include a command to say to the user "I've hidden the cauliflower" even before the "HidePart" executes. Here are a few options to resolve this:
What you can do is use the
state.temp.actionOutputs
property to access the return value of any action and within thePredictedSayCommand
(i.e that command that sends the message back to the user) and conditionally send the appropraite response to the user.An alternative is to send a message back to the user within
HidePart
action itself and terminating the plan by returningAI.StopActionName
.