openRouterExecutor
@Bean
@ConditionalOnProperty(prefix = "ai.koog", name = ["openrouter.api-key"] )
Creates a SingleLLMPromptExecutor bean configured to use the OpenRouter LLM client.
This method is only executed if the openrouter.api-key
property is defined in the application's configuration. It initializes the OpenRouter client using the provided API key and base URL from the application's properties.
Return
A SingleLLMPromptExecutor initialized with an OpenRouter LLM client.
Parameters
properties
The configuration properties for the application, including the OpenRouter client settings.