Skip to main contentwatsonx Developer Hub

Libraries

Free token limit increased!
New 300k token limit for all new, free trials to use for LLM API calls and more. Sign up for free here.

Overview

Use these (open source) libraries to build AI applications on watsonx.ai.

LangChain

LangChain is a framework that enables the development of applications that are powered by language models and provides tools to integrate data sources, model configurations, and workflows. The framework is available for both Python and JavaScript, and is compatible with watsonx.ai API endpoints.

Follow these tutorials to learn how to use LangChain with watsonx:

Documentation:

LangGraph

LangGraph is a framework for building stateful, multi-actor applications by combining language model outputs with structured graph data to create agent and multi-agent workflows; these workflows are then represented with graphs.

Use the LangGraph template in the agent quickstart.

Follow these tutorials to learn how to use LangGraph with watsonx:

LlamaIndex

LlamaIndex (formerly GPT Index) is a tool that helps structure, index, and query external data sources using language models, making it easier to build and interact with custom knowledge bases.

Use the LlamaIndex template in the agent quickstart.

Follow these tutorials to learn how to use LlamaIndex with watsonx:

Documentation:

CrewAI

CrewAI is a multi-agent framework that enables autonomous AI agents to collaborate effectively in completing complex tasks through role-based design and coordinated workflows.

Use the CrewAI template in the agent quickstart.

Follow these tutorials to learn how to use CrewAI with watsonx:

Documentation:

AutoGen

AutoGen is an open-source framework by Microsoft for building collaborative AI agents. It enables multi-agent workflows with event-driven messaging and flexible orchestration.

Use the AutoGen template in the agent quickstart.

Follow these tutorials to learn how to use AutoGen with watsonx:

Documentation:

BeeAI

BeeAI is an open-source multi-agent framework by IBM that enables collaborative AI agents, called “bees,” to communicate and coordinate tasks across different languages via a standardized Agent Communication Protocol (ACP), with support for both TypeScript and Python.

Use the BeeAI template in the agent quickstart.

Follow these tutorials to learn how to use BeeAI with watsonx:

Documentation:

Python SDK

The IBM watsonx.ai Python SDK enables developers to train, deploy, and integrate AI models with their applications using various APIs. The SDK supports tasks, such as model scoring, and integrates with IBM watsonx.ai services.

Documentation:

Node.js SDK

The IBM watsonx.ai Node.js SDK enables developers to create and deploy generative AI applications by providing programmatic access to the IBM watsonx.ai service with various API calls and authentication options.

Documentation: