langchain.llms import GradientLLM is supported.
Imports
Set the Environment API Key
Make sure to get your API key from Gradient AI. You are given $10 in free credits to test and fine-tune different models.GRADIENT_ACCESS_TOKEN and GRADIENT_WORKSPACE_ID to get currently deployed models.
Create the GradientLLM instance
You can specify different parameters such as the model name, max tokens generated, temperature, etc.
Load tools
Initiate the Agent
Run the agent
Ask the agent to memorize a piece of text.Connect these docs programmatically to Claude, VSCode, and more via MCP for real-time answers.