-
Notifications
You must be signed in to change notification settings - Fork 263
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
feat(integration): Crew AI youtube video analysis and query integration #444
Conversation
python-dotenv==1.0.1 | ||
crewai==0.14.3 | ||
uagents==0.12.0 | ||
crewai-tools |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
crewai-tools==0.4.8
@@ -0,0 +1,4 @@ | |||
python-dotenv==1.0.1 | |||
crewai==0.14.3 | |||
uagents==0.12.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
uagents latest version is 0.14.0
result = await crew_ai(msg.youtube_video_url, msg.search_query) | ||
ctx.logger.info(result) | ||
await ctx.send(sender, YoutubeResponse(result = str(result))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wrap the YouTube query processing in a try-except block to handle any errors gracefully.
try:
result = await crew_ai(msg.youtube_video_url, msg.search_query)
ctx.logger.info(result)
await ctx.send(sender, YoutubeResponse(result=str(result)))
except Exception as e:
ctx.logger.error(f'Error processing YouTube query: {e}')
await ctx.send(sender, YoutubeResponse(result='An error occurred while processing your request.'))
Hello @abhifetch I am going to close this PR as it needs some refactoring, (including project.json) please do resubmit to https://github.com/fetchai/uAgent-Examples under /community folder. Thanks! |
No description provided.