todor
V.I.P
Posts: 35
Joined: Tue Nov 29, 2016 5:19 pm

Store data during custom IAdapter evaluation

Mon Dec 05, 2016 5:32 pm

Hi guys,

In my case I have a lot of custom IAdapters, which do different things during the evaluation. For example, I have a custom context-like object which has few properties (parameters, and etc). It is intended these values to be filled during the adapter's evaluation (when the corresponding model is matched). However, I want to "tunnel" this context-like object in the ChatResult and to process it there.

The only way to store these values seems to be in the User/Bot Settings. However, this seems to be like a work around that limitation and it is not the best option to achieve the desired result. Any suggestions?

Best,
Tosho

todor
V.I.P
Posts: 35
Joined: Tue Nov 29, 2016 5:19 pm

Re: Store data during custom IAdapter evaluation

Mon Dec 05, 2016 6:03 pm

Indeed, I think I could use the ChatResult's Data property. Is that a good idea?

Best,
Tosho

JeffersonStack
Pro
Posts: 44
Joined: Fri Apr 05, 2013 1:20 am

Re: Store data during custom IAdapter evaluation

Mon Dec 05, 2016 7:59 pm

Why not use the Context.Data property which is meant to hold shared data during evaluation.

todor
V.I.P
Posts: 35
Joined: Tue Nov 29, 2016 5:19 pm

Re: Store data during custom IAdapter evaluation

Mon Dec 05, 2016 8:22 pm

yep, I've used the property.

Thanks

Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 1 guest