Skip to content

The watsonx.ai Java SDK is an open-source library that simplifies the integration of IBM watsonx.ai APIs into Java applications. It supports chat completions, streaming, tool calling, embeddings, text classification, text extraction, text detection, reranking, and time-series forecasting.

License

Notifications You must be signed in to change notification settings

IBM/watsonx-ai-java-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IBM watsonx.ai Java SDK

IBM watsonx.ai Java SDK is a client library that interacts with the IBM watsonx.ai APIs.

Features

This Java SDK provides a convenient abstraction over the HTTP APIs offered by watsonx.ai, simplifying common tasks such as request construction and response handling. It helps developers integrate with the service more easily, so they can focus on building their applications.

Prerequisites

  • A watsonx.ai service instance.
  • Java 17 or higher.

Samples

Examples of usage are available in the samples/ directory.

Getting Started

To use the watsonx.ai Java SDK, add the following Maven dependency:

<dependency>
    <groupId>com.ibm.watsonx</groupId>
    <artifactId>watsonx-ai</artifactId>
    <version>0.16.0</version>
</dependency>

Contributing

We welcome contributions to this project!

To ensure a smooth contribution process, please follow these guidelines:

  • All source files must include a license header using the SPDX format for the Apache License 2.0:

    /*
     * Copyright 2025 IBM Corporation
     * SPDX-License-Identifier: Apache-2.0
     */
    

    This header, along with code formatting, is automatically applied to source files using the following command:

    ./mvnw compile
    
  • When submitting a patch, you must include a Signed-off-by line in your commit message, indicating that you agree to the DCO:

    Signed-off-by: Your Name <[email protected]>
    

    You can automatically add this line by using the -s flag with git commit:

    git commit -s
    

Feel free to submit issues and pull requests. We appreciate your contributions!

License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

About

The watsonx.ai Java SDK is an open-source library that simplifies the integration of IBM watsonx.ai APIs into Java applications. It supports chat completions, streaming, tool calling, embeddings, text classification, text extraction, text detection, reranking, and time-series forecasting.

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages