DashscopeLLMClient

constructor(settings: DashscopeClientSettings = DashscopeClientSettings(), httpClient: KoogHttpClient, clock: KoogClock = KoogClock.System, toolsConverter: OpenAICompatibleToolDescriptorSchemaGenerator = OpenAICompatibleToolDescriptorSchemaGenerator())(source)

Parameters

settings

The base URL, chat completion path, and timeouts for the DashScope API, defaults to "https://dashscope-intl.aliyuncs.com/compatible-mode/v1" and 900s

httpClient

A fully configured KoogHttpClient for making API requests. Use the secondary constructor that accepts an API key and a KoogHttpClient.Factory to create a client with standard defaults.

clock

Clock instance used for tracking response metadata timestamps


constructor(apiKey: String, settings: DashscopeClientSettings = DashscopeClientSettings(), httpClientFactory: KoogHttpClient.Factory, clock: KoogClock = KoogClock.System, toolsConverter: OpenAICompatibleToolDescriptorSchemaGenerator = OpenAICompatibleToolDescriptorSchemaGenerator())(source)