Skip to content

Commit ddb767e

Browse files
committed
format
1 parent 3aa4af8 commit ddb767e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

langfuse/langchain/CallbackHandler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ def on_agent_action(
365365
raise Exception("run not found")
366366

367367
agent_run = self.runs[run_id]
368-
if hasattr(agent_run, '_otel_span'):
368+
if hasattr(agent_run, "_otel_span"):
369369
agent_run._otel_span.set_attribute(
370370
LangfuseOtelSpanAttributes.OBSERVATION_TYPE, "agent"
371371
)
@@ -394,7 +394,7 @@ def on_agent_finish(
394394
raise Exception("run not found")
395395

396396
agent_run = self.runs[run_id]
397-
if hasattr(agent_run, '_otel_span'):
397+
if hasattr(agent_run, "_otel_span"):
398398
agent_run._otel_span.set_attribute(
399399
LangfuseOtelSpanAttributes.OBSERVATION_TYPE, "agent"
400400
)

0 commit comments

Comments
 (0)