Home / Function/ configure() — langchain Function Reference

configure() — langchain Function Reference

Architecture documentation for the configure() function in manager.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  afb047d4_a471_790b_b243_a82244ee2e5e["configure()"]
  90ea8982_7d84_5e8f_4b5a_533f89fc7211["AsyncCallbackManager"]
  afb047d4_a471_790b_b243_a82244ee2e5e -->|defined in| 90ea8982_7d84_5e8f_4b5a_533f89fc7211
  ba6695e3_66d3_2ef4_027e_436cea7aa24c["configure()"]
  ba6695e3_66d3_2ef4_027e_436cea7aa24c -->|calls| afb047d4_a471_790b_b243_a82244ee2e5e
  ba6695e3_66d3_2ef4_027e_436cea7aa24c["configure()"]
  afb047d4_a471_790b_b243_a82244ee2e5e -->|calls| ba6695e3_66d3_2ef4_027e_436cea7aa24c
  9459fba6_8a00_1919_2b50_35cd43b2bdcd["_configure()"]
  afb047d4_a471_790b_b243_a82244ee2e5e -->|calls| 9459fba6_8a00_1919_2b50_35cd43b2bdcd
  style afb047d4_a471_790b_b243_a82244ee2e5e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/langchain_core/callbacks/manager.py lines 2130–2163

    def configure(
        cls,
        inheritable_callbacks: Callbacks = None,
        local_callbacks: Callbacks = None,
        verbose: bool = False,  # noqa: FBT001,FBT002
        inheritable_tags: list[str] | None = None,
        local_tags: list[str] | None = None,
        inheritable_metadata: dict[str, Any] | None = None,
        local_metadata: dict[str, Any] | None = None,
    ) -> AsyncCallbackManager:
        """Configure the async callback manager.

        Args:
            inheritable_callbacks: The inheritable callbacks.
            local_callbacks: The local callbacks.
            verbose: Whether to enable verbose mode.
            inheritable_tags: The inheritable tags.
            local_tags: The local tags.
            inheritable_metadata: The inheritable metadata.
            local_metadata: The local metadata.

        Returns:
            The configured async callback manager.
        """
        return _configure(
            cls,
            inheritable_callbacks,
            local_callbacks,
            inheritable_tags,
            local_tags,
            inheritable_metadata,
            local_metadata,
            verbose=verbose,
        )

Domain

Subdomains

Called By

Frequently Asked Questions

What does configure() do?
configure() is a function in the langchain codebase, defined in libs/core/langchain_core/callbacks/manager.py.
Where is configure() defined?
configure() is defined in libs/core/langchain_core/callbacks/manager.py at line 2130.
What does configure() call?
configure() calls 2 function(s): _configure, configure.
What calls configure()?
configure() is called by 1 function(s): configure.

Analyze Your Own Codebase

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

Try Supermodel Free