Coder Social home page Coder Social logo

Comments (6)

nikvoloshin avatar nikvoloshin commented on July 28, 2024 1

Thanks for the detailed explanation!

I agree that it would be a great feature, but I don't think something like that will be added in a near future, sorry...

There are several ideological reasons why we don't want to extend our DSL this way, also there are several technical reasons why it is hard to implement "continue and evaluate children" logic as a runtime feature too (e.g. as a reactions extension)
And in any case implementing such a feature will require us to greatly redesign JAICF base logic

As for now, I can only advice to use the onlyIf feature in order to customize activation logic based on context variables

from jaicf-kotlin.

nikvoloshin avatar nikvoloshin commented on July 28, 2024

Hi @CiaronHowell !
JAICF has an onlyIf feature that may help you
Unfortunately, there is no way to compose activation rules in a tree-like structure in JAICF, but you can customize all of your intent rules separately to activate only if there is a property in a context
Hope it helps!

from jaicf-kotlin.

CiaronHowell avatar CiaronHowell commented on July 28, 2024

Ah right, that's fair enough. The main reason for asking about this functionality is that it would reduce a lot of duplicated code for checking the condition.

Do you think this "continue and evaluate children" functionality could be added as a reaction method?

from jaicf-kotlin.

davidmeredith avatar davidmeredith commented on July 28, 2024

I'd support Ciaron's request here, but I think Ciaron is referring to Watson's 'Folders' which simply exist to 'unlock' a set of child nodes/states depending on a logical condition. A folder doesn't itself have a reaction/response, it just makes child nodes available for activation. We've built non-trivial dialogue models with Watson, and have found the Folders functionality a really useful abstraction to help model anaphora using context variables (e.g. 'lastTopic=painManagement') and it really helps build and mange complex flows. I think this would be a great addition to your DSL.

from jaicf-kotlin.

davidmeredith avatar davidmeredith commented on July 28, 2024

fair enough, one to shelve for future perhaps. Best wishes.

from jaicf-kotlin.

CiaronHowell avatar CiaronHowell commented on July 28, 2024

Well explained @davidmeredith!

And in any case implementing such a feature will require us to greatly redesign JAICF base logic
That makes sense, for a 'nice to have' it'd be understandably difficult to justify it at this time!

Thanks again for your time @nikvoloshin.

from jaicf-kotlin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.