Skip to content

Commit

Permalink
🔧 fix langsmith run names
Browse files Browse the repository at this point in the history
  • Loading branch information
shroominic committed Jan 27, 2024
1 parent e24dc02 commit 6716edd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/funcchain/syntax/executable.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def chain(
settings=settings,
)
chain: Runnable[dict[str, Any], Any] = compile_chain(sig, temp_images)
result = chain.invoke(input_kwargs, {"run_name": get_parent_frame(3).function, "callbacks": callbacks})
result = chain.invoke(input_kwargs, {"run_name": get_parent_frame(2).function, "callbacks": callbacks})

if memory and isinstance(result, str):
# TODO: function calls?
Expand Down Expand Up @@ -107,7 +107,7 @@ async def achain(
settings=settings,
)
chain: Runnable[dict[str, str], Any] = compile_chain(sig, temp_images)
result = await chain.ainvoke(input_kwargs, {"run_name": get_parent_frame(5).function, "callbacks": callbacks})
result = await chain.ainvoke(input_kwargs, {"run_name": get_parent_frame(2).function, "callbacks": callbacks})

if memory and isinstance(result, str):
# TODO: function calls?
Expand Down

0 comments on commit 6716edd

Please sign in to comment.