* @brief Returns "discovery" for read-only / meta calls, "execution" otherwise. */
| 1719 | * @brief Returns "discovery" for read-only / meta calls, "execution" otherwise. |
| 1720 | */ |
| 1721 | static 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. |
no test coverage detected