MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / sanitizeName

Function sanitizeName

app/src/AI/Providers/OpenAIProvider.cpp:56–62  ·  view source on GitHub ↗

* @brief OpenAI enforces tool names ^[a-zA-Z0-9_-]+; encode dots/colons. */

Source from the content-addressed store, hash-verified

54 * @brief OpenAI enforces tool names ^[a-zA-Z0-9_-]+; encode dots/colons.
55 */
56static QString sanitizeName(const QString& original)
57{
58 QString out = original;
59 out.replace(QChar('.'), QChar('_'));
60 out.replace(QChar(':'), QChar('_'));
61 return out;
62}
63
64//--------------------------------------------------------------------------------------------------
65// Construction and provider metadata

Callers 3

buildCommandMessagesMethod · 0.85
translateBlocksMethod · 0.85
translateToolsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected