We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d71616e commit ba530e9Copy full SHA for ba530e9
app/src/main/kotlin/com/google/ai/sample/util/CommandParser.kt
@@ -22,6 +22,9 @@ object CommandParser {
22
fun parseCommands(text: String): List<Command> {
23
val commands = mutableListOf<Command>()
24
25
+ // Log the text being parsed for debugging
26
+ Log.d(TAG, "Parsing commands from text: $text")
27
+
28
// Find clickOnButton commands
29
val clickMatcher = CLICK_BUTTON_PATTERN.matcher(text)
30
while (clickMatcher.find()) {
@@ -57,6 +60,9 @@ object CommandParser {
57
60
commands.add(Command.TakeScreenshot)
58
61
}
59
62
63
+ // Log the total number of commands found
64
+ Log.d(TAG, "Total commands found: ${commands.size}")
65
66
return commands
67
68
0 commit comments