Overview
This notebook outlines how to use the ADS4GPTs Tools and Toolkit in LangChain directly. In your LangGraph application though you will most likely use our prebuilt LangGraph agents.Setup
Install ADS4GPTs Package
Install the ADS4GPTs package using pip.Instantiation
Import the necessary libraries, including ADS4GPTs tools and toolkit. Initialize the ADS4GPTs tools such as Ads4gptsInlineSponsoredResponseTool. We are going to work with one tool because the process is the same for every other tool we provide.Toolkit Instantiation
Initialize the Ads4gptsToolkit with the required parameters.Invocation
Run the ADS4GPTs tools with sample inputs and display the results.Async Run ADS4GPTs Tools
Run the ADS4GPTs tools asynchronously with sample inputs and display the results.Toolkit Invocation
Use the Ads4gptsToolkit to get and run tools.Chaining
API reference
You can learn more about ADS4GPTs and the tools at our GitHubConnect these docs programmatically to Claude, VSCode, and more via MCP for real-time answers.