_abatch() — langchain Function Reference
Architecture documentation for the _abatch() function in test_runnable.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD e24518e7_67af_1c57_2674_94d33184f37b["_abatch()"] 192ffa80_aa8c_9fdf_71de_8d2c6c5ac8d1["ControlledExceptionRunnable"] e24518e7_67af_1c57_2674_94d33184f37b -->|defined in| 192ffa80_aa8c_9fdf_71de_8d2c6c5ac8d1 8710f0c7_ddeb_700b_8de4_7a25105fc4b1["test_seq_abatch_return_exceptions()"] 8710f0c7_ddeb_700b_8de4_7a25105fc4b1 -->|calls| e24518e7_67af_1c57_2674_94d33184f37b style e24518e7_67af_1c57_2674_94d33184f37b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/runnables/test_runnable.py lines 4329–4344
async def _abatch(
self,
inputs: list[str],
) -> list[str | Exception]:
outputs: list[str | Exception] = []
for value in inputs:
if value.startswith(self.fail_starts_with):
outputs.append(
ValueError(
f"ControlledExceptionRunnable({self.fail_starts_with}) "
f"fail for {value}"
)
)
else:
outputs.append(value + "a")
return outputs
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does _abatch() do?
_abatch() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/runnables/test_runnable.py.
Where is _abatch() defined?
_abatch() is defined in libs/core/tests/unit_tests/runnables/test_runnable.py at line 4329.
What calls _abatch()?
_abatch() is called by 1 function(s): test_seq_abatch_return_exceptions.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free