PickWriteTool returns the best file-write tool name from the session's observed tools.
(sess *Session)
| 106 | |
| 107 | // PickWriteTool returns the best file-write tool name from the session's observed tools. |
| 108 | func PickWriteTool(sess *Session) string { |
| 109 | return pickToolByPriority(sess, writeToolPriority, func(lower string) bool { |
| 110 | return lower == "write" || (strings.Contains(lower, "write") && strings.Contains(lower, "file")) |
| 111 | }) |
| 112 | } |
| 113 | |
| 114 | // ToolProfile returns cached tool names for injection, computing them on first call. |
| 115 | // Caller does NOT need to hold the session lock. |