Method ToToolName
- Namespace
- IntentSharp.Extensions.AI
- Assembly
- IntentSharp.Extensions.AI.dll
ToToolName(string)
The tool name for an intent: every character outside A-Z a-z 0-9 _ - becomes _. Throws when the
result is longer than MaxToolNameLength characters; names are never truncated silently.
public static string ToToolName(string intentName)
Parameters
intentNamestringThe intent name. Leading and trailing white space is ignored.
Returns
- string
Exceptions
- ArgumentException
intentNameis null, empty or white space, or makes a tool name longer than MaxToolNameLength characters.