partial commit of AI-Agents work. Need to refactor out keys to commit the rest.
This commit is contained in:
15
AI-agents/snippets/agentRouter.js
Normal file
15
AI-agents/snippets/agentRouter.js
Normal file
@@ -0,0 +1,15 @@
|
||||
if (router.hasNext()) {
|
||||
recognizedObject.goTo = router.next().id;
|
||||
recognizedObject.input = router.next().input;
|
||||
} else {
|
||||
recognizedObject.input = recognizedObject.req.body.input;
|
||||
}
|
||||
|
||||
console.log({
|
||||
agentRouter: {
|
||||
goTo: recognizedObject.goTo,
|
||||
input: recognizedObject.input,
|
||||
},
|
||||
});
|
||||
|
||||
next();
|
||||
2
AI-agents/snippets/updateAgentRouter.js
Normal file
2
AI-agents/snippets/updateAgentRouter.js
Normal file
@@ -0,0 +1,2 @@
|
||||
router.setState('TimeAndDate', 'working');
|
||||
next();
|
||||
Reference in New Issue
Block a user