LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • LangGraph Checkpoint
    LangGraph Store
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    ⌘I

    LangChain Assistant

    Ask a question to get started

    Enter to send•Shift+Enter new line

    Menu

    LangGraph Checkpoint
    LangGraph Store
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    Language
    Theme
    Pythonlanggraph-sdkstreamdecodersToolCallsDecoder
    Class●Since v0.4

    ToolCallsDecoder

    Copy
    ToolCallsDecoder(
      self,
      namespace: list[str],
      handle_factory: Callable[..., Any]

    Constructors

    Methods

    View source on GitHub
    )

    Parameters

    NameTypeDescription
    namespace*list[str]
    handle_factory*Callable[..., Any]
    constructor
    __init__
    NameType
    namespacelist[str]
    handle_factoryCallable[..., Any]
    method
    feed

    Yields one tool-call handle per tool-started event.

    Mirrors the per-event body of _ToolCallsProjection._tool_calls_iter (_async/stream.py:1168-1217). The thread register/unregister and the terminal-error-on-close finally stay at the projection / wrapper layer.

    Events whose namespace differs are ignored.

    Keyword-only (tool_call_id, name, input, namespace) -> handle.