GitHub

DeferLoading

API reference for DeferLoading.

Annotate a user-defined tool with True to send it with defer_loading: Claude only sees it once tool search finds it. Anthropic needs at least one tool not deferred (normally the tool search tool); provider-defined tools ignore it::

kit = toolkit.make(
    list_contacts.annotate(tool.DeferLoading, True), tool.ToolSearchBM25_20251119()
)

Functions

default

default() -> bool

Returns bool

@classmethod
def default(cls) -> bool:
    return False