(args: ToolArgs, key: string)
| 30 | } |
| 31 | |
| 32 | function stringArrayArg(args: ToolArgs, key: string): string[] { |
| 33 | const value = args?.[key] |
| 34 | if (!Array.isArray(value)) return [] |
| 35 | return value.filter((item): item is string => typeof item === 'string' && item.trim().length > 0) |
| 36 | } |
| 37 | |
| 38 | function nestedStringArg(args: ToolArgs, parentKey: string, ...keys: string[]): string { |
| 39 | const parent = args?.[parentKey] |
no outgoing calls
no test coverage detected