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

io.quarkiverse.langchain4j.runtime.config.LangChain4jConfig Maven / Gradle / Ivy

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

import static io.quarkus.runtime.annotations.ConfigPhase.RUN_TIME;

import java.time.Duration;
import java.util.Optional;
import java.util.OptionalDouble;

import io.quarkus.runtime.annotations.ConfigDocDefault;
import io.quarkus.runtime.annotations.ConfigRoot;
import io.smallrye.config.ConfigMapping;

@ConfigRoot(phase = RUN_TIME)
@ConfigMapping(prefix = "quarkus.langchain4j")
public interface LangChain4jConfig {

    /**
     * Whether clients should log requests
     */
    @ConfigDocDefault("false")
    Optional logRequests();

    /**
     * Whether clients should log responses
     */
    @ConfigDocDefault("false")
    Optional logResponses();

    /**
     * Global timeout for requests to LLM APIs
     */
    @ConfigDocDefault("10s")
    Optional timeout();

    /**
     * Global temperature for LLM APIs
     */
    OptionalDouble temperature();

    /**
     * Guardrails configuration
     */
    GuardrailsConfig guardrails();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy