* @brief meta.listCommands: lists available commands filtered by prefix. */
| 604 | * @brief meta.listCommands: lists available commands filtered by prefix. |
| 605 | */ |
| 606 | void AI::Conversation::runMetaListCommands(const QString& callId, |
| 607 | const QString& name, |
| 608 | const QJsonObject& arguments) |
| 609 | { |
| 610 | appendToolCallCard(callId, name, arguments, CallStatus::Running); |
| 611 | const auto prefix = arguments.value(QStringLiteral("prefix")).toString(); |
| 612 | const int offset = arguments.value(QStringLiteral("offset")).toInt(0); |
| 613 | const int limit = arguments.value(QStringLiteral("limit")).toInt(0); |
| 614 | const auto reply = m_dispatcher->listCommands(prefix, offset, limit); |
| 615 | recordToolResult(callId, name, reply); |
| 616 | updateToolCallCard(callId, CallStatus::Done, reply); |
| 617 | releaseOutstandingToolResult(); |
| 618 | } |
| 619 | |
| 620 | /** |
| 621 | * @brief meta.executeCommand: dispatches the inner tool with the same safety policy. |
nothing calls this directly
no test coverage detected