All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.quarkiverse.langchain4j.watsonx.runtime.config.IAMConfig Maven / Gradle / Ivy

There is a newer version: 0.21.0
Show newest version
package io.quarkiverse.langchain4j.watsonx.runtime.config;

import java.net.URL;
import java.time.Duration;
import java.util.Optional;

import io.quarkus.runtime.annotations.ConfigDocDefault;
import io.quarkus.runtime.annotations.ConfigGroup;
import io.smallrye.config.WithDefault;

@ConfigGroup
public interface IAMConfig {

    /**
     * Base URL of the IAM Authentication API.
     */
    @WithDefault("https://iam.cloud.ibm.com")
    URL baseUrl();

    /**
     * Timeout for IAM authentication calls.
     */
    @ConfigDocDefault("10s")
    @WithDefault("${quarkus.langchain4j.timeout}")
    Optional timeout();

    /**
     * Grant type for the IAM Authentication API.
     */
    @WithDefault("urn:ibm:params:oauth:grant-type:apikey")
    String grantType();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy