Skip to content

Commit 8e294b7

Browse files
committed
langchain tests
1 parent 3b8a7d1 commit 8e294b7

File tree

2 files changed

+523
-1401
lines changed

2 files changed

+523
-1401
lines changed

langfuse/langchain/CallbackHandler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ def __on_llm_action(
538538
try:
539539
tools = kwargs.get("invocation_params", {}).get("tools", None)
540540
if tools and isinstance(tools, list):
541-
prompts.extend(*({"role": "tool", "content": tool} for tool in tools))
541+
prompts.extend([{"role": "tool", "content": tool} for tool in tools])
542542

543543
model_name = self._parse_model_and_log_errors(
544544
serialized=serialized, metadata=metadata, kwargs=kwargs

0 commit comments

Comments
 (0)