good timezone! I wanted to ask if is there any pos...
# koog-agentic-framework
m
good timezone! I wanted to ask if is there any post, guideline, documentation on how to create a chat agent with koog. I’m strugling a lot to understand the flow as
agent.run
seems a simple in-out function. Maybe in mu head I was expecting a bidirectional stream connection between client-server which send messages between them and thats not how it is meant to be. Any idea or guideline would help me a lot, thank you 🙏🏻
j
Hi there 🙂 A good place I've found to check is the examples folder, there's a very simple chat agent example I hope helps
🖤 1
m
kodee happy
j
This thread might also be relevant to you @Marc
❤️ 1
🎉 1
k
There is a bit more advanced example with streaming responses and moderation, but using koog 0.5.2
m
thank you so much! 🙏🏻
j
@Konstantin it looks like
kpavlov/koog-spring-boot-assistant
instantiates a new
AIAgent
object and invokes
agent.run
on every chat request (even for the same session). If so, is this the recommended approach? Based on the other thread (linked 3 msgs above), I thought the guidance was that the same chat session should be in a single strategy run.
k
There is a persistence feature responsible for storing the conversation state.
👀 1
Basic AI Agents should be short-lived, it receives request and returns the response. In this example the response ends with returning the answer to the user. If interaction with user can be implemented as a Tool like AskUser and SayToUser, then Agent might/should live longer
thank you color 1