Skip to content

Bug: langchain-starter crashes on import due to deleted opengradient.mltools module #2

@golldyck

Description

@golldyck

Problem

The langchain-starter cannot run on current SDK versions due to two broken imports/APIs:

  1. tools.py line 6from opengradient.mltools import create_og_model_tool, ToolType — the opengradient.mltools module no longer exists. The current module is opengradient.alphasense and the function is create_run_model_tool
  2. agent.py line 25messages_modifier=AGENT_SYSTEM_PROMPT — this parameter was renamed to state_modifier in langgraph 0.2.60+ (which is the version specified in requirements.txt)

Steps to Reproduce

cd langchain-starter
pip install -r requirements.txt
python agent.py
# ModuleNotFoundError: No module named 'opengradient.mltools'

Additional Issues

  • README.md line 10 claims the starters include "Coinbase's AgentKit for making on-chain transactions as well as a Twitter toolbox for read and write access to X" — neither exists in the code
  • langchain-starter/README.md line 23 references Twitter API keys that are not used

Impact

The starter kit — the primary onboarding tool for new developers — does not start. This is likely the first thing someone tries when evaluating OpenGradient's agent capabilities.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions