camel icon indicating copy to clipboard operation
camel copied to clipboard

feat: Organize some single agent examples as scripts within package

Open zechengz opened this issue 7 months ago • 2 comments

Description

Add single agent examples as scripts commands

Motivation and Context

We have a lot of useful single agent in examples. But now it's relatively hard to use them as the setup and writing code are a little bit complex etc. To make them more easily to be used, add them as script / command directly and enable specifying arguments to the script directly.

camel-object-recognizer

~ camel-object-recognizer --image_path /Users/zecheng/Pictures/image.jpeg --image_detail high --temperature 0 --model_type gpt-4-turbo
1. Bulldog
2. Kitten
3. Basset Hound
4. Persian Cat
5. French Bulldog

camel-video-describer

~ camel-video-describer --video_path bison.mp4 --temperature 0 --model_type gpt-4-turbo
Title: "Survival in the Snow: A Bison's Battle Against Wolves"

Description:
Witness the raw power of nature captured in this gripping video, where a lone bison faces a relentless assault from a pack of wolves in a snowy landscape. The footage unfolds in a remote, frost-covered field, showcasing a dramatic struggle for survival. As the bison tries to fend off its attackers, the dynamics of predator and prey are vividly displayed against the stark white backdrop of the winter wilderness. This intense encounter highlights the harsh realities and the unyielding spirit of wildlife in their natural habitat. Watch as the bison valiantly attempts to withstand the wolves' coordinated attacks, providing a rare glimpse into the life-and-death challenges faced by these majestic creatures in the wild.

camel-knowledge-graph-constructor

~ camel-knowledge-graph-constructor --text "CAMEL-AI.org is an open-source community dedicated to the study of autonomous and communicative agents."
Nodes:

Node(id='CAMEL-AI.org', type='Organization', properties={'agent_generated'})
Node(id='community', type='Concept', properties={'agent_generated'})
Node(id='study', type='Concept', properties={'agent_generated'})
Node(id='autonomous agents', type='Concept', properties={'agent_generated'})
Node(id='communicative agents', type='Concept', properties={'agent_generated'})

Relationships:

Relationship(subj=Node(id='CAMEL-AI.org', type='Organization'), obj=Node(id='community', type='Concept'), type='FocusOn', properties={'agent_generated'})
Relationship(subj=Node(id='CAMEL-AI.org', type='Organization'), obj=Node(id='study', type='Concept'), type='FocusOn', properties={'agent_generated'})
Relationship(subj=Node(id='CAMEL-AI.org', type='Organization'), obj=Node(id='autonomous agents', type='Concept'), type='Study', properties={'agent_generated'})
Relationship(subj=Node(id='CAMEL-AI.org', type='Organization'), obj=Node(id='communicative agents', type='Concept'), type='Study', properties={'agent_generated'})

camel-telegram-bot

~ camel-telegram-bot --sys_msg "Please repond with Chinese"

image

camel-discord-bot

~ camel-discord-bot --sys_msg "You are a helpful Python programmer. Just respond with Python code."

Types of changes

What types of changes does your code introduce? Put an x in all the boxes that apply:

  • [ ] Bug fix (non-breaking change which fixes an issue)
  • [x] New feature (non-breaking change which adds core functionality)
  • [ ] Breaking change (fix or feature that would cause existing functionality to change)
  • [ ] Documentation (update in the documentation)
  • [ ] Example (update in the folder of example)

Checklist

Go over all the following points, and put an x in all the boxes that apply. If you are unsure about any of these, don't hesitate to ask. We are here to help!

  • [x] I have read the CONTRIBUTION guide. (required)
  • [ ] My change requires a change to the documentation.
  • [ ] I have updated the tests accordingly. (required for a bug fix or a new feature)
  • [ ] I have updated the documentation accordingly.

zechengz avatar Jun 29 '24 08:06 zechengz