genie-ai / genie-router-plugin-api-http Goto Github PK
View Code? Open in Web Editor NEWA genie-router plugin that provides a generic HTTP API for external clients.
License: MIT License
A genie-router plugin that provides a generic HTTP API for external clients.
License: MIT License
See input trace below, with echo and rivescript modules installed:
genie-router-plugin-api-http:httpApi Handling request, marking with uuid bfc55101-5048-4b72-94f3-07cee97b3d19 {"input":"hi there","metadata":{"userId":1534627546155}} +5s
genie-router:brainSelector Falling back to the default brain selector aggregate error +5s
genie-router:brainSelector:default Resolving brain resolution to echo +0ms
genie-router-plugin-api-http:httpApi Handling request, marking with uuid 05ca7bec-de4b-4462-bd74-d42e0bd2351e {"input":"now then?","metadata":{"userId":1534627546155}} +5s
genie-router:brainSelector Falling back to the default brain selector aggregate error +5s
genie-router:brainSelector:default Resolving brain resolution to echo +5s
genie-router-plugin-api-http:httpApi Handling request, marking with uuid b048e9dd-f0dd-4841-8807-877f6cb69ca7 {"input":"ask rivescript for life","metadata":{"userId":1534627546155}} +6s
genie-router-plugin-brain-mentions Found rivescript at start of input +0ms
genie-router-plugin-api-http:httpApi Handling request, marking with uuid c9195f5d-dde4-4113-a762-f2bb96e6d43a {"input":"ok","metadata":{"userId":1534627546155}} +8s
genie-router:brainSelector Selected brain because of its stickiness. +14s
(node:958) UnhandledPromiseRejectionWarning: Error: Uuid not found in list of open requests.
at HttpApi.speak (/projects/genie-router-plugin-api-http/lib/httpApi/index.js:61:19)
at _processHeardInput (/projects/genie-router/router.js:41:74)
at Router._processHeardInput (/projects/genie-router/router.js:70:19)
at <anonymous>
(node:958) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 8)
(node:958) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.