Skip to main content

TypeError: object dict can’t be used in ‘await’ expression

This is a common mistake when defining the graph. The internals of graphai expect all nodes to be defined with async def. When defining a node with def we will see this error:
The solution is to always define nodes using async def. For example: