Skip to content

Instantly share code, notes, and snippets.

@PatrickKalkman
Created May 26, 2025 13:53
Show Gist options
  • Save PatrickKalkman/b93193954fb168943b73e812876605ad to your computer and use it in GitHub Desktop.
Save PatrickKalkman/b93193954fb168943b73e812876605ad to your computer and use it in GitHub Desktop.
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