Documentation
Table of Contents

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

intentName string

The intent name. Leading and trailing white space is ignored.

Returns

string

Exceptions

ArgumentException

intentName is null, empty or white space, or makes a tool name longer than MaxToolNameLength characters.