Comments (2)
Hey Sean,
As you say extensions are late binding, only called when the grammar resolves to an tag, but they also provide the greatest amount of flexibility, in that you can pretty much get them to do anything you want.
They are not exclusive to calling external services, in fact they were originally designed to provide a way to create new tags. This may have been superseded by some of the work I did in the past couple of releases which allow you to built your own tags and dynamically add them, but I still see the extension as an easy interface driven way of calling out to Python and them allowing that Python class to do what you want.
Services are my implementation of the AIML 2.0 sraix tag, which personally I think is broken. It was added by Dr Wallace to support Pandora bots and their very specific implementation of sraix and their API service. I don't even implement it 100% preferring to push config into the config file rather than the sraix definition. Having said that, Services are indeed early binding and therefore provide a way to do early init and configuration that might not be possible with an extension
For the work that I think you are doing, I think services are probably the best way, as you can push all config into config.yaml and license.keys, do early initiation and even caching/connection pooling if needed
from program-y.
Agreed. I have started moving the other interfaces to services, and using extensions to do things that seem easier to achieve in Python.
from program-y.
Related Issues (20)
- Programy on PythonAnywhere HOT 1
- Program-Y is alive.... again HOT 2
- <system> tag in aiml doesn't work HOT 1
- scheduling extension doesn't print message
- Error when trying to save data from 'learnf' elements to MongoDB HOT 2
- Wikipedia doesn't seam to work HOT 1
- <learn> and <star> don't work together HOT 1
- How to get a variable value outside of aiml files inside python code?
- Setting SentenceSplitter on an embedded bot HOT 4
- Whenever I install program y, cryptography fails to install and the whole installation stops.
- Bug in pattern parser where the star index of the words will change
- WARNING:root:[Console] [bot] [brain] [testuser] - System command node disabled in config
- ModuleNotFoundError: No module named 'sqlalchemy'
- Pattern matching not work in a right way
- image not displaying in telegram
- GUI for my bot (Not a feature request I was just unsure where to ask) HOT 1
- Change Default Response
- AttributeError: module 'collections' has no attribute 'MutableSet' HOT 3
- module apscheduler not found
- Thoughts about ChatGPT service for ProgramY
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from program-y.