Improve Video Learning Agent with action-based detection and analysis toggle

- Change video detection from screenshot hash to action-based (Swipe detection)
- Add enable_analysis toggle to disable VLM screenshot analysis
- Improve task prompt to prevent VLM from stopping prematurely
- Add debug logging for action detection troubleshooting
- Fix ModelResponse attribute error (content -> raw_content)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
let5sne.win10
2026-01-10 01:47:09 +08:00
parent 6b770832aa
commit b97d3f3a9f
4 changed files with 116 additions and 72 deletions

View File

@@ -19,6 +19,7 @@ const VideoLearningModule = {
targetCount = 10,
category = null,
watchDuration = 3.0,
enableAnalysis = true,
} = options;
try {
@@ -28,6 +29,7 @@ const VideoLearningModule = {
target_count: targetCount,
category: category,
watch_duration: watchDuration,
enable_analysis: enableAnalysis,
});
this.currentSessionId = response.data.session_id;