Skip to content

Commit 2adafb4

Browse files
committed
langchain tests
1 parent 1d13568 commit 2adafb4

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
@@ -525,7 +525,7 @@ def __on_llm_action(
525525
try:
526526
tools = kwargs.get("invocation_params", {}).get("tools", None)
527527
if tools and isinstance(tools, list):
528-
prompts.extend(*({"role": "tool", "content": tool} for tool in tools))
528+
prompts.extend([{"role": "tool", "content": tool} for tool in tools])
529529

530530
model_name = self._parse_model_and_log_errors(
531531
serialized=serialized, metadata=metadata, kwargs=kwargs

0 commit comments

Comments
 (0)