Home / Function/ invoke() — langchain Function Reference

invoke() — langchain Function Reference

Architecture documentation for the invoke() function in test_runnable.py from the langchain codebase.

Function python LangChainCore Runnables calls 1 called by 10

Entity Profile

Dependency Diagram

graph TD
  a3895c50_dab4_0c36_2d24_f63121e198a0["invoke()"]
  192ffa80_aa8c_9fdf_71de_8d2c6c5ac8d1["ControlledExceptionRunnable"]
  a3895c50_dab4_0c36_2d24_f63121e198a0 -->|defined in| 192ffa80_aa8c_9fdf_71de_8d2c6c5ac8d1
  275ec322_b94e_59cc_b503_f5f88356efb1["test_prompt()"]
  275ec322_b94e_59cc_b503_f5f88356efb1 -->|calls| a3895c50_dab4_0c36_2d24_f63121e198a0
  0fc9475d_0fef_dae2_3836_3858c82a0021["test_prompt_template_params()"]
  0fc9475d_0fef_dae2_3836_3858c82a0021 -->|calls| a3895c50_dab4_0c36_2d24_f63121e198a0
  726d1e44_659b_e411_088b_3b34eb2faba1["test_with_listeners()"]
  726d1e44_659b_e411_088b_3b34eb2faba1 -->|calls| a3895c50_dab4_0c36_2d24_f63121e198a0
  fc1a6fbc_b0de_920d_4501_33d3d11941dc["test_with_listener_propagation()"]
  fc1a6fbc_b0de_920d_4501_33d3d11941dc -->|calls| a3895c50_dab4_0c36_2d24_f63121e198a0
  39e9ce18_afd0_bc6c_ae16_f073a179b7e0["test_prompt_with_chat_model()"]
  39e9ce18_afd0_bc6c_ae16_f073a179b7e0 -->|calls| a3895c50_dab4_0c36_2d24_f63121e198a0
  a5bb8d40_4215_e525_7be8_b63db4b1a979["test_prompt_with_chat_model_and_parser()"]
  a5bb8d40_4215_e525_7be8_b63db4b1a979 -->|calls| a3895c50_dab4_0c36_2d24_f63121e198a0
  e78f934c_45bc_7548_4bf3_365874598c22["test_combining_sequences()"]
  e78f934c_45bc_7548_4bf3_365874598c22 -->|calls| a3895c50_dab4_0c36_2d24_f63121e198a0
  d02bdb6e_06e6_6255_7f70_bb316f1a7bba["test_seq_dict_prompt_llm()"]
  d02bdb6e_06e6_6255_7f70_bb316f1a7bba -->|calls| a3895c50_dab4_0c36_2d24_f63121e198a0
  3e6f308a_404c_dd9a_1a4e_5882901f0fb8["test_seq_prompt_dict()"]
  3e6f308a_404c_dd9a_1a4e_5882901f0fb8 -->|calls| a3895c50_dab4_0c36_2d24_f63121e198a0
  eb2f915f_755e_dd2c_1ba1_afcfb20dd5be["test_router_runnable()"]
  eb2f915f_755e_dd2c_1ba1_afcfb20dd5be -->|calls| a3895c50_dab4_0c36_2d24_f63121e198a0
  fb618d44_c03b_ea8b_385b_2278dfb173d4["invoke()"]
  a3895c50_dab4_0c36_2d24_f63121e198a0 -->|calls| fb618d44_c03b_ea8b_385b_2278dfb173d4
  style a3895c50_dab4_0c36_2d24_f63121e198a0 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/tests/unit_tests/runnables/test_runnable.py lines 4183–4186

        def invoke(
            self, input: Any, config: RunnableConfig | None = None, **kwargs: Any
        ) -> Any:
            raise NotImplementedError

Domain

Subdomains

Calls

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 4183.
What does invoke() call?
invoke() calls 1 function(s): invoke.
What calls invoke()?
invoke() is called by 10 function(s): test_combining_sequences, test_prompt, test_prompt_template_params, test_prompt_with_chat_model, test_prompt_with_chat_model_and_parser, test_router_runnable, test_seq_dict_prompt_llm, test_seq_prompt_dict, and 2 more.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free