* Checks if a tool is a search/read operation (for backwards compatibility).
( toolName: string, toolInput: unknown, tools: Tools, behavior?: CollapseBehavior, )
| 294 | * Checks if a tool is a search/read operation (for backwards compatibility). |
| 295 | */ |
| 296 | function isToolSearchOrRead( |
| 297 | toolName: string, |
| 298 | toolInput: unknown, |
| 299 | tools: Tools, |
| 300 | behavior?: CollapseBehavior, |
| 301 | ): boolean { |
| 302 | return getToolSearchOrReadInfo(toolName, toolInput, tools, behavior) |
| 303 | .isCollapsible |
| 304 | } |
| 305 | |
| 306 | /** |
| 307 | * Get the tool name, input, and search/read info from a message if it's a collapsible tool use. |
no test coverage detected