mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-13 08:27:03 +00:00
Update LangSmith Walkthrough (#11043)
This commit is contained in:
parent
bea78b3271
commit
4aec587979
BIN
docs/extras/guides/langsmith/img/log_traces.png
Normal file
BIN
docs/extras/guides/langsmith/img/log_traces.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 766 KiB |
BIN
docs/extras/guides/langsmith/img/test_results.png
Normal file
BIN
docs/extras/guides/langsmith/img/test_results.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 815 KiB |
File diff suppressed because it is too large
Load Diff
@ -640,7 +640,12 @@ async def _arun_chain(
|
||||
) -> Union[dict, str]:
|
||||
"""Run a chain asynchronously on inputs."""
|
||||
inputs_ = inputs if input_mapper is None else input_mapper(inputs)
|
||||
if isinstance(chain, Chain) and isinstance(inputs_, dict) and len(inputs_) == 1:
|
||||
if (
|
||||
isinstance(chain, Chain)
|
||||
and isinstance(inputs_, dict)
|
||||
and len(inputs_) == 1
|
||||
and chain.input_keys
|
||||
):
|
||||
val = next(iter(inputs_.values()))
|
||||
output = await chain.acall(val, callbacks=callbacks, tags=tags)
|
||||
else:
|
||||
@ -765,7 +770,12 @@ def _run_chain(
|
||||
) -> Union[Dict, str]:
|
||||
"""Run a chain on inputs."""
|
||||
inputs_ = inputs if input_mapper is None else input_mapper(inputs)
|
||||
if isinstance(chain, Chain) and isinstance(inputs_, dict) and len(inputs_) == 1:
|
||||
if (
|
||||
isinstance(chain, Chain)
|
||||
and isinstance(inputs_, dict)
|
||||
and len(inputs_) == 1
|
||||
and chain.input_keys
|
||||
):
|
||||
val = next(iter(inputs_.values()))
|
||||
output = chain(val, callbacks=callbacks, tags=tags)
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user