Skip to content

Commit df6361e

Browse files
authored
use string instead of UUID (#180)
1 parent cf80cd3 commit df6361e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

langgraph_supervisor/supervisor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def call_agent(state: dict, config: RunnableConfig) -> dict:
9494
state,
9595
patch_configurable(
9696
config,
97-
{"thread_id": uuid5(UUID(str(thread_id)), agent.name) if thread_id else None},
97+
{"thread_id": str(uuid5(UUID(str(thread_id)), agent.name)) if thread_id else None},
9898
)
9999
if isinstance(agent, RemoteGraph)
100100
else config,
@@ -107,7 +107,7 @@ async def acall_agent(state: dict, config: RunnableConfig) -> dict:
107107
state,
108108
patch_configurable(
109109
config,
110-
{"thread_id": uuid5(UUID(str(thread_id)), agent.name) if thread_id else None},
110+
{"thread_id": str(uuid5(UUID(str(thread_id)), agent.name)) if thread_id else None},
111111
)
112112
if isinstance(agent, RemoteGraph)
113113
else config,

0 commit comments

Comments
 (0)