5 Commits

Author SHA1 Message Date
1be5cc047c Fix browser closure timing in search agent
Move defer statement to ensure browser closure occurs only after assigning the browser to the context. This prevents potential issues of premature resource release.
2025-04-12 02:22:10 -04:00
7a77d74624 Fix browser closure timing in search agent
Move defer statement to ensure browser closure occurs only after assigning the browser to the context. This prevents potential issues of premature resource release.
2025-04-07 11:24:58 -04:00
4f1a7e5b80 Streamline toolbox usage and update dependencies
Enhanced the toolbox in `search.go` to require tools explicitly with `WithRequireTool(true)`, improving execution control. Updated multiple library dependencies in `go.mod` and `go.sum` to ensure compatibility, stability, and to leverage the latest features. Added logging for `CallAndExecute` results to aid in debugging.
2025-04-04 20:14:46 -04:00
1aaed4ea28 Add YouTube transcript processing with yt-dlp integration
Introduced a new tool for extracting YouTube video transcripts and leveraging them to answer questions. Updated `SearchAndRead` to support reading YouTube transcripts and regular pages distinctly. Included relevant dependencies for handling subtitles and video downloads.
2025-03-27 02:18:16 -04:00
5d2c350acf Consolidated a bunch of reused code to agents 2025-03-26 00:21:19 -04:00