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. The internalToolExecutionEnabled=false option prevents Spring from ever calling this method. If it is called anyway, the error message provides clear guidance on the misconfiguration.
Return
the corresponding Spring AI tool callback (definition-only, non-executable)
Parameters
descriptor
the Koog tool descriptor to convert