How much of Koog works right now in KMP shared cod...
# koog-agentic-framework
j
How much of Koog works right now in KMP shared code? I just tried to move some Koog code I had in to
commonMain
in a KMP project here (with Android, iOS, Wasm and JVM targets).....most seemed fine but getting errors resolving
ToolSet
and
McpToolRegistryProvider
v
That’s expected, indeed. Annotation-based tools with ToolSet currently work only on the JVM (because of reflection). For the multiplatform you’ll need to use the class-based tool definitions (https://docs.koog.ai/class-based-tools/) which we’re planing to also simplify and improve (so that you won’t have to implement the ToolDescriptor manually — and likely also serializers won’t be needed either. I think @simon.vergauwen already made a proposal PR for that)
McpToolRegistryProvider
is also not available because of the current limitations of the kotlin-mcp SDK (in which, we’re also planning to make the
client
multiplatform soon)
👍 1