(nameOrNames: string | readonly string[])
| 66 | */ |
| 67 | addBuiltIn(names: readonly string[]): ToolSet; |
| 68 | addBuiltIn(nameOrNames: string | readonly string[]): ToolSet { |
| 69 | const names = typeof nameOrNames === "string" ? [nameOrNames] : nameOrNames; |
| 70 | for (const name of names) { |
| 71 | validateName("builtin", name); |
| 72 | this.items.push(`builtin:${name}`); |
| 73 | } |
| 74 | return this; |
| 75 | } |
| 76 | |
| 77 | /** |
| 78 | * Adds a custom tool pattern. Matches tools registered via the SDK's |
no test coverage detected