Created
May 26, 2025 13:53
-
-
Save PatrickKalkman/b93193954fb168943b73e812876605ad to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MOVIE_ANALYSIS_TOOLS = [ | |
get_video_duration, # Determine total video length | |
encode_intro_segment, # Create optimized intro clip | |
encode_outro_segment, # Create optimized outro clip | |
detect_intro_end_time, # AI analysis of intro segment | |
detect_outro_start_time, # AI analysis of outro segment | |
save_analysis_results, # Structured result storage | |
] | |
# The agent orchestrates these tools automatically | |
agent = Agent( | |
name="MovieAnalysisAgent", | |
instructions=detailed_workflow_instructions, | |
tools=MOVIE_ANALYSIS_TOOLS, | |
model="gpt-4o-mini", # Lightweight orchestration model | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment