Closed gyliu513 closed 1 week ago
[!CAUTION]
Review failed
The pull request is closed.
The changes introduce a new file, crewai-bedrock-example.py
, which establishes a framework for managing AI-driven tasks on the CrewAI platform. It includes the initialization of necessary modules, the creation of a language model instance, and the definition of a structured output class. Two agents are instantiated with specific roles, and two tasks are defined to facilitate research and content creation. The workflow "bedrock_kickoff" is established to execute the crew's tasks based on a given topic.
File | Change Summary |
---|---|
crew/crewai-bedrock-example.py | - Added JsonOutput class for structured output. |
- Added bedrock_crew_kickoff(topic) method for workflow execution. |
|
- Instantiated researcher and writer agents with defined roles. |
|
- Defined task1 and task2 for analysis and blog post creation. |
|
- Instantiated crew to manage agents and tasks. |
sequenceDiagram
participant User
participant Crew
participant Researcher
participant Writer
participant LLM
participant SerperDevTool
User->>Crew: Start "bedrock_kickoff" with topic "Artificial Intelligence"
Crew->>Researcher: Assign task1 (in-depth analysis)
Researcher->>LLM: Generate research content
Researcher->>SerperDevTool: Perform online search
Crew->>Writer: Assign task2 (create blog post)
Writer->>LLM: Draft blog post based on research
Crew->>User: Print results
🐇 "In the land of code where the rabbits hop,
New tasks and agents, we never stop!
With LLMs and tools, our work's a delight,
Creating and learning, both day and night."
🌟
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit