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

Function toolCallCategory

app/src/AI/Conversation.cpp:1721–1730  ·  view source on GitHub ↗

* @brief Returns "discovery" for read-only / meta calls, "execution" otherwise. */

Source from the content-addressed store, hash-verified

1719 * @brief Returns "discovery" for read-only / meta calls, "execution" otherwise.
1720 */
1721static QString toolCallCategory(const QString& name)
1722{
1723 if (name.startsWith(QStringLiteral("meta.")))
1724 return QStringLiteral("discovery");
1725
1726 if (AI::CommandRegistry::instance().safetyOf(name) == AI::Safety::Safe)
1727 return QStringLiteral("discovery");
1728
1729 return QStringLiteral("execution");
1730}
1731
1732/**
1733 * @brief Adds a ToolCallCard payload to the active assistant message.

Callers 1

appendToolCallCardMethod · 0.85

Calls 1

safetyOfMethod · 0.80

Tested by

no test coverage detected