Function: withToolPhrases()
function withToolPhrases(labels, toolPhrase?): (toolName) => ToolPhrase | undefined;
Defined in: core/toolLabels.ts:107
A toolPhrase that counts the tools in labels() with their phrase, and any other with toolPhrase.
Parameters
| Parameter | Type |
|---|---|
labels | () => | Readonly<Record<string, ToolLabel>> | undefined |
toolPhrase? | (toolName) => ToolPhrase | undefined |
Returns
(toolName) => ToolPhrase | undefined