This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
watchman watch-del-all && rm -rf node_modules/ && yarn cache clean && yarn install && yarn start -- --reset-cache |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<configuration> | |
<system.webServer> | |
<webSocket enabled="false" /> | |
<handlers> | |
<!-- Indicates that the server.js file is a node.js site to be handled by the iisnode module --> | |
<add name="iisnode" path="server.js" verb="*" modules="iisnode"/> | |
</handlers> | |
<rewrite> | |
<rules> | |
<!-- Do not interfere with requests for node-inspector debugging --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class AssistantNode: | |
... | |
def dispatch(self, event: AssistantAction): | |
if not self.config: | |
raise AttributeError("Config is required to dispatch actions") | |
self.writer(DispatchedAction(node_name=self.config.get("langgraph_node"), graph_id=self.config.get("graph_id"), action=action)) | |