Package-level declarations

Types

Link copied to clipboard
class FunctionCallHandler(functions: List<LLMFunction>, eventHandler: EventPublisher?, functionCallLimit: Int = 60)

Finds function calls in ChatCompletions and calls the callback function if any are found.

Link copied to clipboard
class LangChainClient(languageModel: LangChainConfig, clientBuilder: (LangChainConfig, ChatCompletionSettings?) -> ChatLanguageModel, eventHandler: EventPublisher? = null) : ChatCompleter

Wraps a LangChain4j ChatLanguageModel to provide a ChatCompleter interface.

Link copied to clipboard
data class LangChainConfig(val modelName: String, val url: String, val accessKeyId: String?, val secretAccessKey: String?)