toMap

fun toMap(): Map<String, Any>

Snapshot as an unmodifiable map, safe to hand to Spring AI org.springframework.ai.chat.model.ToolContext.