DOCS(Readme.md): "LangGraph Workflows" have two problems. #55

Open
opened 2026-06-13 00:00:49 +00:00 by brent.edwards · 0 comments
Member

Metadata

Commit Message: docs(registry): update LangGraph Workflows directly
Branch: docs/langgraph-workflows

Details

The LangGraph workflow reads:

from cleveractors.langgraph import LangGraph, Node, NodeType, GraphState

graph = LangGraph(name="my_workflow", config={})
graph.add_node(Node(name="start", node_type=NodeType.AGENT, agent="assistant"))
graph.add_node(Node(name="end", node_type=NodeType.END))
graph.add_edge("start", "end")
result = await graph.execute({"message": "Hello"})

There are two problems:

  1. If someone copied it from the README.md, then await needs to be inside an async fonction.
  2. Without the async, the code still has the problem:
Traceback (most recent call last):
  File "/home/devuser/Temp/langgraph.py", line 3, in <module>
    graph = LangGraph(name="my_workflow", config={})
TypeError: LangGraph.__init__() got an unexpected keyword argument 'name'
## Metadata Commit Message: docs(registry): update LangGraph Workflows directly Branch: docs/langgraph-workflows ## Details The LangGraph workflow reads: ``` from cleveractors.langgraph import LangGraph, Node, NodeType, GraphState graph = LangGraph(name="my_workflow", config={}) graph.add_node(Node(name="start", node_type=NodeType.AGENT, agent="assistant")) graph.add_node(Node(name="end", node_type=NodeType.END)) graph.add_edge("start", "end") result = await graph.execute({"message": "Hello"}) ``` There are two problems: 1. If someone copied it from the README.md, then `await` needs to be inside an `async` fonction. 2. Without the `async`, the code still has the problem: ``` Traceback (most recent call last): File "/home/devuser/Temp/langgraph.py", line 3, in <module> graph = LangGraph(name="my_workflow", config={}) TypeError: LangGraph.__init__() got an unexpected keyword argument 'name' ```
brent.edwards added this to the v2.1.0 milestone 2026-06-13 00:00:49 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
cleveragents/cleveractors-core#55
No description provided.