koogToolDescriptorToToolCallback
Converts a Koog ToolDescriptor to a Spring AI ToolCallback.
The returned callback carries the tool definition (name, description, JSON schema) but its ToolCallback.call method always throws IllegalStateException. This is by design: in KOOG execution mode, tools are executed by the Koog agent framework, not by Spring AI. Because the Spring AI org.springframework.ai.chat.model.ChatModel is invoked directly (without a ToolCallingAdvisor/ChatClient), Spring AI 2.0 never executes tool calls itself — it only forwards the tool definitions to the model and returns the requested tool calls in the response. If ToolCallback.call is invoked anyway, the error message provides clear guidance on the misconfiguration.
Return
the corresponding Spring AI tool callback (definition-only, non-executable)
Parameters
the Koog tool descriptor to convert