Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return of value #47

Open
Duo90 opened this issue Mar 3, 2019 · 2 comments
Open

Return of value #47

Duo90 opened this issue Mar 3, 2019 · 2 comments

Comments

@Duo90
Copy link

Duo90 commented Mar 3, 2019

Hi Buguroo,

Now I am using Pyknow to do a calculation, and can i ask how to return a value out of pyknow so I can use as part of web application?

Current only print is working.

Thanks

@juggieram
Copy link

+1 was this ever fixed? what use cases does PyKnow serve if only printing is possible?

@8ball030
Copy link

8ball030 commented Apr 13, 2019

Hi,
I have found there are a couple of ways to get a value out,
You can construct a class which inherits the knowledge engine, you can than have a variable which you set within the knowledge base and then read after running the knowledge engine.
Or, alternatively you can use the standard library queue and put messages onto it during the execution of the rules.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants