langchain.js
    Preparing search index...

    Function isXAIBuiltInTool

    • Checks if a tool is an xAI built-in tool (like live_search). Built-in tools are executed server-side by the xAI API.

      Parameters

      • tool: any

        The tool to check

      Returns tool is XAILiveSearchTool

      true if the tool is an xAI built-in tool