Home / Function/ _invocation_params() — langchain Function Reference

_invocation_params() — langchain Function Reference

Architecture documentation for the _invocation_params() function in huggingface_endpoint.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  d3d02905_01f3_3fb8_f596_5694650af72c["_invocation_params()"]
  e6b830e0_e492_47f6_6d0a_65d69c36da10["HuggingFaceEndpoint"]
  d3d02905_01f3_3fb8_f596_5694650af72c -->|defined in| e6b830e0_e492_47f6_6d0a_65d69c36da10
  477387e3_0b93_4ca4_57d9_1d292e64d8f9["_call()"]
  477387e3_0b93_4ca4_57d9_1d292e64d8f9 -->|calls| d3d02905_01f3_3fb8_f596_5694650af72c
  56f985d3_9992_f0cb_ad40_e11190fde3bb["_acall()"]
  56f985d3_9992_f0cb_ad40_e11190fde3bb -->|calls| d3d02905_01f3_3fb8_f596_5694650af72c
  5b897346_9859_18d1_14ba_55cddb3d7da7["_stream()"]
  5b897346_9859_18d1_14ba_55cddb3d7da7 -->|calls| d3d02905_01f3_3fb8_f596_5694650af72c
  cde77cc5_1e1f_9bb4_ed01_e6c99050c598["_astream()"]
  cde77cc5_1e1f_9bb4_ed01_e6c99050c598 -->|calls| d3d02905_01f3_3fb8_f596_5694650af72c
  style d3d02905_01f3_3fb8_f596_5694650af72c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/partners/huggingface/langchain_huggingface/llms/huggingface_endpoint.py lines 317–322

    def _invocation_params(
        self, runtime_stop: list[str] | None, **kwargs: Any
    ) -> dict[str, Any]:
        params = {**self._default_params, **kwargs}
        params["stop"] = params["stop"] + (runtime_stop or [])
        return params

Domain

Subdomains

Frequently Asked Questions

What does _invocation_params() do?
_invocation_params() is a function in the langchain codebase, defined in libs/partners/huggingface/langchain_huggingface/llms/huggingface_endpoint.py.
Where is _invocation_params() defined?
_invocation_params() is defined in libs/partners/huggingface/langchain_huggingface/llms/huggingface_endpoint.py at line 317.
What calls _invocation_params()?
_invocation_params() is called by 4 function(s): _acall, _astream, _call, _stream.

Analyze Your Own Codebase

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

Try Supermodel Free