LangGraph provides low-level infrastructure for building long-running, stateful workflows and agents.

Prerequisites

  • A SambaCloud API key
    Create a SambaCloud account and generate an API key from the API Keys tab.
  • Python 3.11.5 or later

Installation and setup

  1. Create a virtual environment:
python -m venv .venv
source .venv/bin/activate
  1. install the required libraries
pip install langchain-sambanova langchain langgraph

Example use cases

You can use LangGraph with SambaCloud to create multi-agent workflows such as:
  • Web search
  • Retrieval-Augmented Generation (RAG)
  • SQL agents

Example notebooks

Agentic Search: Build a chatbot that integrates a web search tool with SambaCloud LLM.

LangGraph documentation

See LangGraph documentation for more details.