PickReadTool returns the best file-read tool name from the session's observed tools.
(sess *Session)
| 99 | |
| 100 | // PickReadTool returns the best file-read tool name from the session's observed tools. |
| 101 | func PickReadTool(sess *Session) string { |
| 102 | return pickToolByPriority(sess, readToolPriority, func(lower string) bool { |
| 103 | return lower == "read" || (strings.Contains(lower, "read") && strings.Contains(lower, "file")) |
| 104 | }) |
| 105 | } |
| 106 | |
| 107 | // PickWriteTool returns the best file-write tool name from the session's observed tools. |
| 108 | func PickWriteTool(sess *Session) string { |