dashscope
fun dashscope(apiKey: String, settings: DashscopeClientSettings = DashscopeClientSettings(), baseClient: HttpClient = HttpClient(), clock: Clock = Clock.System, toolsConverter: OpenAICompatibleToolDescriptorSchemaGenerator = OpenAICompatibleToolDescriptorSchemaGenerator()): PromptExecutorBuilder(source)
Adds a Dashscope client.
Multiple Dashscope clients are allowed — adding more than one will result in a RoutingLLMPromptExecutor being created at build time.
Return
This builder instance for chaining.
Parameters
apiKey
The API key for authenticating with the Dashscope API.
settings
Configuration settings for the Dashscope client. Defaults to DashscopeClientSettings.
baseClient
The HTTP client used for API requests. Defaults to a new HttpClient.
clock
The clock used for time-related operations. Defaults to Clock.System.
toolsConverter
Tool descriptor schema generator. Defaults to OpenAICompatibleToolDescriptorSchemaGenerator.