Saltar al contenido principal
Versión: 0.19.0

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​

ParameterType
labels() => | Readonly<Record<string, ToolLabel>> | undefined
toolPhrase?(toolName) => ToolPhrase | undefined

Returns​

(toolName) => ToolPhrase | undefined