Refactor build_and_cache_graph_from_data function in chat.py to use model_dump() method for graph data
This commit is contained in:
parent
dc71ad261b
commit
4317ab35b7
1 changed files with 3 additions and 1 deletions
|
|
@ -87,7 +87,9 @@ async def retrieve_vertices_order(
|
||||||
flow_id=flow_id, session=session, chat_service=chat_service, graph=graph
|
flow_id=flow_id, session=session, chat_service=chat_service, graph=graph
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
graph = await build_and_cache_graph_from_data(flow_id=flow_id, data=data, chat_service=chat_service)
|
graph = await build_and_cache_graph_from_data(
|
||||||
|
flow_id=flow_id, graph_data=data.model_dump(), chat_service=chat_service
|
||||||
|
)
|
||||||
if stop_component_id or start_component_id:
|
if stop_component_id or start_component_id:
|
||||||
try:
|
try:
|
||||||
first_layer = graph.sort_vertices(stop_component_id, start_component_id)
|
first_layer = graph.sort_vertices(stop_component_id, start_component_id)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue