* @brief meta.snapshot: returns the dispatcher's current state snapshot. */
| 588 | * @brief meta.snapshot: returns the dispatcher's current state snapshot. |
| 589 | */ |
| 590 | void AI::Conversation::runMetaSnapshot(const QString& callId, |
| 591 | const QString& name, |
| 592 | const QJsonObject& arguments) |
| 593 | { |
| 594 | appendToolCallCard(callId, name, arguments, CallStatus::Running); |
| 595 | QJsonObject reply; |
| 596 | reply[QStringLiteral("ok")] = true; |
| 597 | reply[QStringLiteral("snapshot")] = m_dispatcher->getSnapshot(); |
| 598 | recordToolResult(callId, name, reply); |
| 599 | updateToolCallCard(callId, CallStatus::Done, reply); |
| 600 | releaseOutstandingToolResult(); |
| 601 | } |
| 602 | |
| 603 | /** |
| 604 | * @brief meta.listCommands: lists available commands filtered by prefix. |
nothing calls this directly
no test coverage detected