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

feat(integration): Crew AI youtube video analysis and query integration #444

Closed
wants to merge 2 commits into from

Conversation

abhifetch
Copy link
Collaborator

No description provided.

@abhifetch abhifetch changed the title feat(integrations): Crew AI youtube video analysis and query integration feat(integration): Crew AI youtube video analysis and query integration Jul 3, 2024
python-dotenv==1.0.1
crewai==0.14.3
uagents==0.12.0
crewai-tools
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -0,0 +1,4 @@
python-dotenv==1.0.1
crewai==0.14.3
uagents==0.12.0
Copy link
Contributor

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

https://pypi.org/project/uagents/

Comment on lines +54 to +56
result = await crew_ai(msg.youtube_video_url, msg.search_query)
ctx.logger.info(result)
await ctx.send(sender, YoutubeResponse(result = str(result)))
Copy link
Contributor

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.'))
        

@Archento Archento requested review from devjsc and removed request for lrahmani and jrriehl September 6, 2024 12:30
@Archento Archento added the a-integrations Area: Integrations - changes to integrations but not the core framework label Sep 6, 2024
@devjsc
Copy link
Member

devjsc commented Oct 7, 2024

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!

@devjsc devjsc closed this Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a-integrations Area: Integrations - changes to integrations but not the core framework
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants