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

Enhance readme #201

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,25 @@ This is a collection of examples of different ways to use the crewAI framework t
By [@joaomdmoura](https://x.com/joaomdmoura).

## Examples
- [Marketing Strategy](https://github.com/joaomdmoura/crewAI-examples/tree/main/marketing_strategy)
- [Surprise Trip](https://github.com/joaomdmoura/crewAI-examples/tree/main/surprise_trip)
- [Match to Proposal](https://github.com/joaomdmoura/crewAI-examples/tree/main/match_profile_to_positions)
- [Find Job Candidades Demo](https://github.com/joaomdmoura/crewAI-examples/tree/main/recruitment)
- [Create Job Posting](https://github.com/joaomdmoura/crewAI-examples/tree/main/job-posting)
- [Game Generator](https://github.com/joaomdmoura/crewAI-examples/tree/main/game-builder-crew)
- [Marketing Strategy](https://github.com/crewAIInc/crewAI-examples/tree/main/marketing_strategy)
- [Surprise Trip](https://github.com/crewAIInc/crewAI-examples/tree/main/surprise_trip)
- [Match to Proposal](https://github.com/crewAIInc/crewAI-examples/tree/main/match_profile_to_positions)
- [Find Job Candidades Demo](https://github.com/crewAIInc/crewAI-examples/tree/main/recruitment)
- [Create Job Posting](https://github.com/crewAIInc/crewAI-examples/tree/main/job-posting)
- [Game Generator](https://github.com/crewAIInc/crewAI-examples/tree/main/game-builder-crew)

## Old Examples, need to be updated

### Basic Examples

- [Trip Planner](https://github.com/joaomdmoura/crewAI-examples/tree/main/trip_planner)
- [Create Instagram Post](https://github.com/joaomdmoura/crewAI-examples/tree/main/instagram_post)
- [Markdown Validator](https://github.com/joaomdmoura/crewAI-examples/tree/main/markdown_validator)
- [Using Azure OpenAI API](https://github.com/joaomdmoura/crewAI-examples/tree/main/azure_model)
- [Trip Planner](https://github.com/crewAIInc/crewAI-examples/tree/main/trip_planner)
- [Create Instagram Post](https://github.crewAIInc/joaomdmoura/crewAI-examples/tree/main/instagram_post)
- [Markdown Validator](https://github.com/crewAIInc/crewAI-examples/tree/main/markdown_validator)
- [Using Azure OpenAI API](https://github.com/crewAIInc/crewAI-examples/tree/main/azure_model)

Starting your own example
- [Starter Template](https://github.com/joaomdmoura/crewAI-examples/tree/main//starter_template)
- [Starter Template](https://github.com/crewAIInc/crewAI-examples/tree/main//starter_template)
### Advanced Examples
- [Stock Analysis](https://github.com/joaomdmoura/crewAI-examples/tree/main/stock_analysis)
- [Landing Page Generator](https://github.com/joaomdmoura/crewAI-examples/tree/main/landing_page_generator)
- [CrewAI + LangGraph](https://github.com/joaomdmoura/crewAI-examples/tree/main/CrewAI-LangGraph)
- [Stock Analysis](https://github.com/crewAIInc/crewAI-examples/tree/main/stock_analysis)
- [Landing Page Generator](https://github.com/crewAIInc/crewAI-examples/tree/main/landing_page_generator)
- [CrewAI + LangGraph](https://github.com/crewAIInc/crewAI-examples/tree/main/CrewAI-LangGraph)
2 changes: 1 addition & 1 deletion azure_model/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ authors = ["ITLackey <[email protected]>"]
python = ">=3.10.0,<3.12"
crewai = "^0.85.0"
python-dotenv = "1.0.0"
langchain_openai = "0.0.2"
langchain_openai = "0.1.0"

[tool.pyright]
# https://github.com/microsoft/pyright/blob/main/docs/configuration.md
Expand Down
2 changes: 1 addition & 1 deletion instagram_post/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ authors = ["Your Name <[email protected]>"]

[tool.poetry.dependencies]
python = ">=3.10.0,<3.12"
crewai = "^0.11.0"
crewai = "^0.85.0"
python-dotenv = "1.0.0"
opencv-python = "4.8.1.78"
google-search-results = "2.4.2"
Expand Down
14 changes: 13 additions & 1 deletion instagram_post/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ def product_analysis(self, agent, product_website, product_details):
Keep in mind, attention to detail is crucial for
a comprehensive analysis. It's currenlty 2024.
"""),
expected_output=dedent(f"""\
A full report about the product: {product_website}."""),
agent=agent
)

Expand All @@ -32,6 +34,8 @@ def competitor_analysis(self, agent, product_website, product_details):
Your final report MUST include BOTH all context about {product_website}
and a detailed comparison to whatever competitor they have competitors.
"""),
expected_output=dedent(f"""\
The top 3 competitors of {product_website}. Include all context about {product_website} and a detailed comparison to whatever competitor they have competitors."""),
agent=agent
)

Expand All @@ -49,6 +53,8 @@ def campaign_development(self, agent, product_website, product_details):
Your final answer MUST be ideas that will resonate with the audience and
also include ALL context you have about the product and the customer.
"""),
expected_output=dedent(f"""\
A list of ideas for the campaign for {product_website}. Include all context about {product_website} and a detailed comparison to whatever competitor they have competitors."""),
agent=agent
)

Expand All @@ -70,6 +76,8 @@ def instagram_ad_copy(self, agent):
Your final answer MUST be 3 options for an ad copy for instagram that
not only informs but also excites and persuades the audience.
"""),
expected_output=dedent("""\
A list of 3 options for an ad copy for instagram that not only informs but also excites and persuades the audience."""),
agent=agent
)

Expand All @@ -95,6 +103,8 @@ def take_photograph_task(self, agent, copy, product_website, product_details):
Your final answer must be 3 options of photographs, each with 1 paragraph
describing the photograph exactly like the examples provided above.
"""),
expected_output=dedent(f"""\
A list of 3 options for photographs for instagram that not only informs but also excites and persuades the audience."""),
agent=agent
)

Expand All @@ -117,5 +127,7 @@ def review_photo(self, agent, product_website, product_details):
Your final answer must be 3 reviewed options of photographs,
each with 1 paragraph description following the examples provided above.
"""),
expected_output=dedent(f"""\
A list of 3 reviewed options for photographs for instagram that not only informs but also excites and persuades the audience."""),
agent=agent
)
)
2 changes: 1 addition & 1 deletion job-posting/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ authors = ["Your Name <[email protected]>"]
readme = "README.md"

[tool.poetry.dependencies]
python = ">=3.12,<=3.13"
python = ">=3.12,<=3.12"
crewai = {extras = ["tools"], version = "^0.85.0"}
python-dotenv = "^1.0.1"

Expand Down
4 changes: 2 additions & 2 deletions landing_page_generator/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ authors = ["Your Name <[email protected]>"]
[tool.poetry.dependencies]
python = ">=3.10.0,<3.12"
python-dotenv = "1.0.0"
crewai = "^0.76.9"
crewai = "^0.85.90"
unstructured = "^0.16.4"

[tool.poetry.scripts]
Expand All @@ -25,4 +25,4 @@ ignore = ['W291', 'W292', 'W293']

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
build-backend = "poetry.core.masonry.api"
2 changes: 1 addition & 1 deletion lead-score-flow/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ requires-python = ">=3.10,<=3.13"
dependencies = [
"crewai[tools]==0.85.0",
"langchain-tools>=0.1.34",
"crewai-tools>=0.12.0",
"crewai-tools>=0.14.0",
"google-auth-oauthlib>=1.2.1",
"google-api-python-client>=2.145.0",
"pyvis>=0.3.2",
Expand Down
3 changes: 2 additions & 1 deletion markdown_validator/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "markdown_validator"
version = "0.1.0"
description = ""
authors = ["ITLackey <[email protected]>"]

[tool.poetry.dependencies]
python = ">=3.10.0,<3.12"
crewai = "^0.85.0"
Expand All @@ -25,4 +26,4 @@ ignore = ['W291', 'W292', 'W293']

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
build-backend = "poetry.core.masonry.api"
4 changes: 2 additions & 2 deletions marketing_strategy/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ description = "marketing-posts using crewAI"
authors = [
{ name = "Your Name", email = "[email protected]" },
]
requires-python = ">=3.10,<=3.13"
requires-python = ">=3.10,<=3.12"
dependencies = [
"crewai[tools]==0.85.0",
"crewai-tools>=0.4.6",
"crewai-tools>=0.14.0",
]

[project.scripts]
Expand Down
6 changes: 3 additions & 3 deletions match_profile_to_positions/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ description = "match_to_proposal using crewAI"
authors = ["Your Name <[email protected]>"]

[tool.poetry.dependencies]
python = ">=3.10,<=3.13"
crewai = { extras = ["tools"], version = "^0.35.8" }
crewai-tools = "^0.4.6"
python = ">=3.10,<=3.12"
crewai = { extras = ["tools"], version = "^0.85.0" }
crewai-tools = "^0.14.0"

[tool.poetry.scripts]
match_to_proposal = "match_to_proposal.main:run"
Expand Down
2 changes: 1 addition & 1 deletion meeting_assistant_flow/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description = "meeting_assistant_flow using crewAI"
authors = [
{ name = "Your Name", email = "[email protected]" },
]
requires-python = ">=3.10,<=3.13"
requires-python = ">=3.10,<=3.12"
dependencies = [
"crewai[tools]>=0.83.0,<1.0.0",
"asyncio>=3.4.3",
Expand Down
2 changes: 1 addition & 1 deletion nvidia_models/intro/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ ignore = [

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
build-backend = "poetry.core.masonry.api"
2 changes: 1 addition & 1 deletion nvidia_models/marketing_strategy/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description = "marketing-posts using crewAI"
authors = ["raspawar [email protected]"]

[tool.poetry.dependencies]
python = ">=3.10,<=3.13"
python = ">=3.10,<=3.12"
langchain-nvidia-ai-endpoints = "^0.3.5"
python-dotenv = "^1.0.1"
crewai = "^0.85.0"
Expand Down
2 changes: 1 addition & 1 deletion recruitment/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description = "recruitment using crewAI"
authors = ["Your Name <[email protected]>"]

[tool.poetry.dependencies]
python = ">=3.10,<=3.13"
python = ">=3.10,<=3.12"
crewai = { extras = ["tools"], version = "^0.85.0" }
selenium = "^4.21.0"

Expand Down
2 changes: 1 addition & 1 deletion self_evaluation_loop_flow/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "self_evaluation_loop_flow"
version = "0.1.0"
description = "self-evalulation-loop-flow using crewAI"
authors = [{ name = "Your Name", email = "[email protected]" }]
requires-python = ">=3.10,<=3.13"
requires-python = ">=3.10,<=3.12"
dependencies = [
"crewai[tools]==0.85.0",
]
Expand Down
2 changes: 1 addition & 1 deletion stock_analysis/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ authors = ["Your Name <[email protected]>"]
readme = "README.md"

[tool.poetry.dependencies]
python = ">=3.12,<=3.13"
python = ">=3.10,<=3.12"
crewai = {extras = ["tools"], version = "^0.85.0"}
python-dotenv = "^1.0.1"
html2text = "^2024.2.26"
Expand Down
1 change: 0 additions & 1 deletion surprise_trip/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ authors = ["Your Name <[email protected]>"]
[tool.poetry.dependencies]
python = ">=3.10,<=3.13"
crewai = { extras = ["tools"], version = "^0.85.0" }
crewai-tools = "^0.4.6"
pip = "^24.1.1"
install = "^1.3.5"

Expand Down
6 changes: 3 additions & 3 deletions trip_planner/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ authors = ["Your Name <[email protected]>"]

[tool.poetry.dependencies]
python = ">=3.10.0,<3.12"
crewai = "^0.11.0"
unstructured = '==0.10.25'
crewai = "^0.85.0"
unstructured = '==0.13.0'
pyowm = '3.3.0'
tools = "^0.1.9"
python-dotenv = "1.0.0"
Expand All @@ -24,4 +24,4 @@ ignore = ['W291', 'W292', 'W293']

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
build-backend = "poetry.core.masonry.api"