You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, it does not seem possible to set Values for Agent Variables programmatically as detailed here. It seems to work well for eg. Stocks inside the Agent, but for Variables the following error occurs ([Height] being a variable primitive):
setValue() only works with primitives that are stateful, which are the Stock and State primitives. You could trying using a Stock instead of a Variable for your Height.
Hi Scott, thanks for the quick reply! Both work, but in case I want to let's say store a piece of text in an agent's attribute, calling setValue on a Stock primitive with a String (which works just fine) seems a little counterintuitive.
Currently, it does not seem possible to set Values for Agent Variables programmatically as detailed here. It seems to work well for eg. Stocks inside the Agent, but for Variables the following error occurs ([Height] being a variable primitive):
After looking into the code, it seems that there is no specific setValue function specified for variable primitives. Because of that, the default error is thrown.
The text was updated successfully, but these errors were encountered: