Skip to content

Instantly share code, notes, and snippets.

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))
@skoob13
skoob13 / web.config
Created November 17, 2017 20:21
Azure web.config configuration
<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 -->
watchman watch-del-all && rm -rf node_modules/ && yarn cache clean && yarn install && yarn start -- --reset-cache