Files
Qt_DesktopPet/src/assistant/CommandDispatcher.h
T

34 lines
542 B
C++

#pragma once
#include "IntentRouter.h"
#include <QString>
enum class CommandDispatchAction
{
Chat,
Reminder,
Weather,
FileOperation,
LaunchApp,
UnsupportedTool,
};
struct CommandDispatchResult
{
CommandDispatchAction action = CommandDispatchAction::Chat;
UserIntent intent;
QString message;
};
class CommandDispatcher
{
public:
CommandDispatchResult dispatch(const QString &text) const;
private:
QString unsupportedToolMessage(UserIntentType type) const;
IntentRouter m_intentRouter;
};