Closed ahnugent closed 3 years ago
We don't document every possible method. We support and document a subset (of the methods we think most people might find useful in the context of a dialog). I'm updating the methods topic to clarify that we support "some of the" methods that are available with Gson JsonObject.
Thanks, Michelle
That ought to avoid some confusion, at least.
Cheers, Allen
On Tue., 2 Feb. 2021, 02:27 Michelle Miller, notifications@github.com wrote:
We don't document every possible method. We support and document a subset (of the methods we think most people might find useful in the context of a dialog). I'm updating the methods topic to clarify that we support "some of the" methods that are available with Gson JsonObject.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ibm-cloud-docs/assistant/issues/390#issuecomment-770939407, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC57MVS2XOMKW7FVRT666D3S43B55ANCNFSM4W25YT3Q .
I just wasted an hour searching for documentation on how to add a key-value pair to an existing context variable. I finally hit on the "addProperty" method by trial and error!
Please include this and any other missing methods. (Nb. The Gson JsonObject documentation referred to a method called "add", which threw an exception, so it seems that this API is not 1:1 compatible.)