Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds Video Surfer to autogen_ext #4387

Open
wants to merge 29 commits into
base: main
Choose a base branch
from
Open

Adds Video Surfer to autogen_ext #4387

wants to merge 29 commits into from

Conversation

gagb
Copy link
Collaborator

@gagb gagb commented Nov 26, 2024

This pull request introduces the new VideoSurferAgent and its associated functionalities to the autogen-ext package. The changes include adding dependencies for video processing, defining the VideoSurferAgent class, and implementing various video-related functions. Additionally, there are some modifications to existing agents and their initializations.

Key Changes:

New Features:

  • VideoSurferAgent Introduction:
    • Added VideoSurferAgent class in python/packages/autogen-ext/src/autogen_ext/agents/video_surfer/_video_surfer.py. This agent can answer questions about local video files using various tools for extracting audio, transcribing audio with timestamps, getting video length, saving screenshots, and using OpenAI to transcribe video screenshots.
    • Implemented video processing functions in python/packages/autogen-ext/src/autogen_ext/agents/video_surfer/_action_space.py, including extract_audio, transcribe_audio_with_timestamps, get_video_length, save_screenshot, openai_transcribe_video_screenshot, and get_screenshot_at.

Dependency Updates:

  • New Dependencies for Video Processing:
    • Added new dependencies autogen-agentchat, openai, opencv-python, ffmpeg-python, and openai-whisper to pyproject.toml under video-surfer.

Codebase Modifications:

  • Agent Initialization Adjustments:
    • Removed MultimodalWebSurfer import and initialization from python/packages/autogen-ext/src/autogen_ext/agents/__init__.py.
    • Re-added MultimodalWebSurfer initialization in python/packages/autogen-ext/src/autogen_ext/agents/web_surfer/__init__.py.

New Module:

  • Video Surfer Module Initialization:
    • Created __init__.py for video_surfer module to include VideoSurferAgent and associated action space functions.

@gagb gagb marked this pull request as draft November 26, 2024 22:19
@gagb gagb marked this pull request as ready for review November 26, 2024 23:07
@gagb gagb requested review from ekzhu and afourney November 26, 2024 23:10
@gagb gagb changed the title Adds Video Surfer Adds Video Surfer to autogen_ext Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants