Table of Contents

Method SanitizeName

Namespace
Oscova.Agents
Assembly
Oscova.Agents.dll

SanitizeName(string?)

Sanitizes a name so it can safely be used as an AI function or tool name. Replaces any sequence of non-alphanumeric characters with an underscore.

public static string? SanitizeName(string? name)

Parameters

name string?

The name to sanitize, or null.

Returns

string?

The sanitized name, or null if name is null.