hello! I’m planning to develop an agentic app wher...
# koog-agentic-framework
m
hello! I’m planning to develop an agentic app where my Idea is to split each special domain in different agents, in my example a real state investment agent. My original idea was to create different agents for dedicated stuff: • market investigation agent • roi calculation agent • tax calculation agent • etc I was thinking to use A2A protocol with Koog creating a parent orchestrator. What would be the ideal implementation? do I really need A2A here? or is there a build in Koog solution for this? I’m just at a experimentation level and also not feeling much knowledgeable so any tip is very very welcome 😄 🤘🏻
f
If all of the agents are built in Koog you don't need A2A. You can create agents as tools and then pass those tools to the parent orchestrator agent. The Banking example is a good one to look at.
🙏🏻 1
m
thank you!
f
If you need to build something more custom I've also take the approach of creating a tool set with regular functions then having my custom agents run inside those functions. At the end of the day the tool call function is a regular kotlin function so you can do whatever you want in it
Copy code
class AgentTools(
    private val sessionId: String,
    private val auth: Auth
) : ToolSet {
    @Tool
    @LLMDescription("Research a question")
    @Suppress("unused")
    suspend fun research(@LLMDescription("Question you want to ask about the market") query: String): String {
        val agent = createAgent()
        return agent.run(query)
    }
}
m
in this case I gues the agent is treates a a asingle input-output stuff, right?
f
Yeah. I guess you could technically give the tool agent access to a tool that accepts user input also
if that’s your question
🙏🏻 1