Skip to content

Commit c55aac0

Browse files
committed
lcc LangGraph span_type to Graph
1 parent e104a2e commit c55aac0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cozeloop/integration/langchain/trace_callback.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ def on_chain_start(self, serialized: Dict[str, Any], inputs: Dict[str, Any], **k
131131
self._on_prompt_start(flow_span, serialized, inputs, **kwargs)
132132
else:
133133
span_type = 'chain'
134-
if kwargs['name'] == 'LangGraph': # LangGraph is agent span_type,for trajectory evaluation aggregate to an agent
135-
span_type = 'agent'
134+
if kwargs['name'] == 'LangGraph': # LangGraph is Graph span_type,for trajectory evaluation aggregate to an agent
135+
span_type = 'graph'
136136
flow_span = self._new_flow_span(kwargs['name'], span_type, **kwargs)
137137
flow_span.set_tags({'input': _convert_2_json(inputs)})
138138
except Exception as e:

0 commit comments

Comments
 (0)