You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: langfuse/langchain/CallbackHandler.py
+16-10Lines changed: 16 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -186,10 +186,10 @@ def on_chain_start(
186
186
def_register_langfuse_prompt(
187
187
self,
188
188
*,
189
-
run_id,
189
+
run_id: UUID,
190
190
parent_run_id: Optional[UUID],
191
191
metadata: Optional[Dict[str, Any]],
192
-
):
192
+
)->None:
193
193
"""We need to register any passed Langfuse prompt to the parent_run_id so that we can link following generations with that prompt.
194
194
195
195
If parent_run_id is None, we are at the root of a trace and should not attempt to register the prompt, as there will be no LLM invocation following it.
0 commit comments