feat: Enhance conversation testing with ROM loading and verbose output options
This commit is contained in:
@@ -157,6 +157,10 @@ void ConversationalAgentService::SetRomContext(Rom* rom) {
|
||||
}
|
||||
}
|
||||
|
||||
void ConversationalAgentService::ResetConversation() {
|
||||
history_.clear();
|
||||
}
|
||||
|
||||
absl::StatusOr<ChatMessage> ConversationalAgentService::SendMessage(
|
||||
const std::string& message) {
|
||||
if (message.empty() && history_.empty()) {
|
||||
|
||||
@@ -42,6 +42,9 @@ class ConversationalAgentService {
|
||||
// Provide the service with a ROM context for tool execution.
|
||||
void SetRomContext(Rom* rom);
|
||||
|
||||
// Clear the current conversation history, preserving ROM/tool context.
|
||||
void ResetConversation();
|
||||
|
||||
private:
|
||||
std::vector<ChatMessage> history_;
|
||||
std::unique_ptr<AIService> ai_service_;
|
||||
|
||||
Reference in New Issue
Block a user