-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #43 from debuggerone/examples
added 7 more agents and examples and updated the EXAMPLE.md file
- Loading branch information
Showing
18 changed files
with
1,200 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import asyncio | ||
from core.classify_list_agent import ClassifyListAgent | ||
|
||
async def run_classify_list_example(): | ||
items_to_classify = ['Apple', 'Chocolate', 'Carrot'] | ||
classification_criteria = 'Classify each item as healthy or unhealthy snack' | ||
agent = ClassifyListAgent(list_to_classify=items_to_classify, classification_criteria=classification_criteria) | ||
classified_items = await agent.classify_list() | ||
|
||
print("Original list:", items_to_classify) | ||
print("Classified results:", classified_items) | ||
|
||
if __name__ == "__main__": | ||
asyncio.run(run_classify_list_example()) |
Oops, something went wrong.