Hi everyone I am playing with Ktor and Koog to cre...
# koog-agentic-framework
t
Hi everyone I am playing with Ktor and Koog to create an AI agent. I see Ktor already has a Koog plugin, but looks like it just supports simple LLM inside a router. If i want a custom strategy or call LLM outside a router, in service for example, I should use Koog dependency instead of Ktor-Koog plugin, right?
k
Hi, @Tung97 Hl . Yes, you are right, you need only dependency.
t
Thank you 😊
But does it conflict between two dependencies if I add them all in gradle?
k
No, there is no conflict. Koog-ktor depends on koog-agents. You don’t need to add an extra dependency
K 1
t
Sounds good
v
You can also use custom strategies through the ktor plugin
Copy code
// Create and run a ReAct agent using a specific model
val output = aiAgent(
  strategy = reActStrategy(),
  model = OpenAIModels.Chat.GPT4_1,
  input = userInput
)
Inside the route handler — you have the (optional) strategy parameter , and of course you can implement your own one and pass there
K 2
t
Thank you