Skip to content

Commit 8ec8dfc

Browse files
committed
fixed format
1 parent 7a05f77 commit 8ec8dfc

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

  • instrumentation-genai/opentelemetry-instrumentation-langchain/src/opentelemetry/instrumentation/langchain

instrumentation-genai/opentelemetry-instrumentation-langchain/src/opentelemetry/instrumentation/langchain/callback_handler.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,10 @@ def on_chat_model_start(
109109
input_messages: list[InputMessage] = []
110110
for sub_messages in messages: # type: ignore[reportUnknownVariableType]
111111
for message in sub_messages: # type: ignore[reportUnknownVariableType]
112-
content = message.content # type: ignore[reportUnknownVariableType]
113-
role = message.type # type: ignore[reportUnknownVariableType]
114-
parts = [Text(content=content, type="text")] # type: ignore[reportUnknownVariableType]
115-
input_messages.append(InputMessage(parts=parts, role=role)) # type: ignore[reportUnknownVariableType]
112+
content = message.content # type: ignore[reportUnknownVariableType]
113+
role = message.type # type: ignore[reportUnknownVariableType]
114+
parts = [Text(content=content, type="text")] # type: ignore[reportUnknownVariableType]
115+
input_messages.append(InputMessage(parts=parts, role=role)) # type: ignore[reportUnknownVariableType]
116116

117117
llm_invocation = LLMInvocation(
118118
request_model=request_model,

0 commit comments

Comments
 (0)