simpleOpenAIExecutor
fun simpleOpenAIExecutor(apiToken: String, httpClientFactory: KoogHttpClient.Factory): SingleLLMPromptExecutor(source)
Creates a SingleLLMPromptExecutor instance configured to use the OpenAI client.
Return
A new instance of SingleLLMPromptExecutor configured with the OpenAILLMClient.
Parameters
apiToken
The API token used for authentication with the OpenAI API.
httpClientFactory
Factory used to create the underlying HTTP client.
fun simpleOpenAIExecutor(apiToken: String): ERROR CLASS: Symbol not found for SingleLLMPromptExecutor(source)
Convenience overload that constructs the underlying client via its JVM no-factory entry point (resolves the default ai.koog.http.client.KoogHttpClient.Factory at call time). JVM and Android only.