invoke() — langchain Function Reference
Architecture documentation for the invoke() function in test_runnable.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD fb618d44_c03b_ea8b_385b_2278dfb173d4["invoke()"] 9287800d_c4fd_fdba_1bab_2012a61e78d9["FakeRunnable"] fb618d44_c03b_ea8b_385b_2278dfb173d4 -->|defined in| 9287800d_c4fd_fdba_1bab_2012a61e78d9 db136234_689c_bc2f_5ada_ad2ff0ae39dd["invoke()"] db136234_689c_bc2f_5ada_ad2ff0ae39dd -->|calls| fb618d44_c03b_ea8b_385b_2278dfb173d4 a3895c50_dab4_0c36_2d24_f63121e198a0["invoke()"] a3895c50_dab4_0c36_2d24_f63121e198a0 -->|calls| fb618d44_c03b_ea8b_385b_2278dfb173d4 f59d5b6a_111b_6895_b338_7e3d29e63896["invoke()"] f59d5b6a_111b_6895_b338_7e3d29e63896 -->|calls| fb618d44_c03b_ea8b_385b_2278dfb173d4 328b1c1f_dee3_6bdb_7bcd_9cb109ba1f9d["test_configurable_fields()"] 328b1c1f_dee3_6bdb_7bcd_9cb109ba1f9d -->|calls| fb618d44_c03b_ea8b_385b_2278dfb173d4 5af08be9_42b6_be5e_f597_d71ee5fed1c1["test_configurable_alts_factory()"] 5af08be9_42b6_be5e_f597_d71ee5fed1c1 -->|calls| fb618d44_c03b_ea8b_385b_2278dfb173d4 2f48bb67_be06_63b0_47d4_f590a7b778f8["test_configurable_fields_example()"] 2f48bb67_be06_63b0_47d4_f590a7b778f8 -->|calls| fb618d44_c03b_ea8b_385b_2278dfb173d4 c865b13d_440d_195f_8f93_74aa1a302124["test_passthrough_tap()"] c865b13d_440d_195f_8f93_74aa1a302124 -->|calls| fb618d44_c03b_ea8b_385b_2278dfb173d4 a5226eb9_296c_795b_9d07_388c671dd444["test_with_config_metadata_passthrough()"] a5226eb9_296c_795b_9d07_388c671dd444 -->|calls| fb618d44_c03b_ea8b_385b_2278dfb173d4 c815e74e_a60f_9f8b_d559_154085048c7a["test_with_config()"] c815e74e_a60f_9f8b_d559_154085048c7a -->|calls| fb618d44_c03b_ea8b_385b_2278dfb173d4 885a7702_d799_80c5_7111_a31c94ee5e8e["test_default_method_implementations()"] 885a7702_d799_80c5_7111_a31c94ee5e8e -->|calls| fb618d44_c03b_ea8b_385b_2278dfb173d4 690bb842_24b9_7a9c_8dce_5b13d9848af8["test_recursive_lambda()"] 690bb842_24b9_7a9c_8dce_5b13d9848af8 -->|calls| fb618d44_c03b_ea8b_385b_2278dfb173d4 4becb306_21ba_dac9_68f8_27e88f689364["test_retrying()"] 4becb306_21ba_dac9_68f8_27e88f689364 -->|calls| fb618d44_c03b_ea8b_385b_2278dfb173d4 ddb31a72_b9b1_0f3c_afc0_e5a9b2ad7fc4["test_seq_batch_return_exceptions()"] ddb31a72_b9b1_0f3c_afc0_e5a9b2ad7fc4 -->|calls| fb618d44_c03b_ea8b_385b_2278dfb173d4 style fb618d44_c03b_ea8b_385b_2278dfb173d4 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/runnables/test_runnable.py lines 187–193
def invoke(
self,
input: str,
config: RunnableConfig | None = None,
**kwargs: Any,
) -> int:
return len(input)
Domain
Subdomains
Calls
Called By
- invoke()
- invoke()
- invoke()
- test_configurable_alts_factory()
- test_configurable_fields()
- test_configurable_fields_example()
- test_default_atransform_with_dicts()
- test_default_method_implementations()
- test_default_transform_with_dicts()
- test_invoke_stream_passthrough_assign_trace()
- test_listeners()
- test_passthrough_tap()
- test_recursive_lambda()
- test_retrying()
- test_runnable_assign()
- test_runnable_branch_invoke()
- test_runnable_branch_invoke_call_counts()
- test_runnable_branch_invoke_callbacks()
- test_runnable_gen()
- test_runnable_gen_context_config()
- test_runnable_iter_context_config()
- test_runnable_lambda_context_config()
- test_schema_for_prompt_and_chat_model()
- test_seq_abatch_return_exceptions()
- test_seq_batch_return_exceptions()
- test_tool_from_runnable()
- test_with_config()
- test_with_config_metadata_passthrough()
Source
Frequently Asked Questions
What does invoke() do?
invoke() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/runnables/test_runnable.py.
Where is invoke() defined?
invoke() is defined in libs/core/tests/unit_tests/runnables/test_runnable.py at line 187.
What does invoke() call?
invoke() calls 1 function(s): invoke.
What calls invoke()?
invoke() is called by 28 function(s): invoke, invoke, invoke, test_configurable_alts_factory, test_configurable_fields, test_configurable_fields_example, test_default_atransform_with_dicts, test_default_method_implementations, and 20 more.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free