• Estimate the number of tokens a function definition will use. Note that using the function definition within a prompt will add extra tokens, so you might want to use promptTokensEstimate instead.

    Parameters

    • funcs: FunctionDef[]

      An array of OpenAI function definitions

    Returns number

    An estimate for the number of tokens the function definitions will use