forked from crewAIInc/crewAI
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'refs/remotes/upstream/main'
- Loading branch information
Showing
74 changed files
with
450,040 additions
and
4,292 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve CrewAI | ||
title: "[BUG]" | ||
labels: bug | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Description** | ||
Provide a clear and concise description of what the bug is. | ||
|
||
**Steps to Reproduce** | ||
Provide a step-by-step process to reproduce the behavior: | ||
|
||
**Expected behavior** | ||
A clear and concise description of what you expected to happen. | ||
|
||
**Screenshots/Code snippets** | ||
If applicable, add screenshots or code snippets to help explain your problem. | ||
|
||
**Environment Details:** | ||
- **Operating System**: [e.g., Ubuntu 20.04, macOS Catalina, Windows 10] | ||
- **Python Version**: [e.g., 3.8, 3.9, 3.10] | ||
- **crewAI Version**: [e.g., 0.30.11] | ||
- **crewAI Tools Version**: [e.g., 0.2.6] | ||
|
||
**Logs** | ||
Include relevant logs or error messages if applicable. | ||
|
||
**Possible Solution** | ||
Have a solution in mind? Please suggest it here, or write "None". | ||
|
||
**Additional context** | ||
Add any other context about the problem here. |
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,24 @@ | ||
--- | ||
name: Custom issue template | ||
about: Describe this issue template's purpose here. | ||
title: "[DOCS]" | ||
labels: documentation | ||
assignees: '' | ||
|
||
--- | ||
|
||
## Documentation Page | ||
<!-- Provide a link to the documentation page that needs improvement --> | ||
|
||
## Description | ||
<!-- Describe what needs to be changed or improved in the documentation --> | ||
|
||
## Suggested Changes | ||
<!-- If possible, provide specific suggestions for how to improve the documentation --> | ||
|
||
## Additional Context | ||
<!-- Add any other context about the documentation issue here --> | ||
|
||
## Checklist | ||
- [ ] I have searched the existing issues to make sure this is not a duplicate | ||
- [ ] I have checked the latest version of the documentation to ensure this hasn't been addressed |
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,26 @@ | ||
name: Mark stale issues and pull requests | ||
|
||
on: | ||
schedule: | ||
- cron: '10 12 * * *' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
stale: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
issues: write | ||
pull-requests: write | ||
steps: | ||
- uses: actions/stale@v9 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
stale-issue-label: 'no-issue-activity' | ||
stale-issue-message: 'This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.' | ||
close-issue-message: 'This issue was closed because it has been stalled for 5 days with no activity.' | ||
days-before-issue-stale: 30 | ||
days-before-issue-close: 5 | ||
stale-pr-label: 'no-pr-activity' | ||
stale-pr-message: 'This PR is stale because it has been open for 45 days with no activity.' | ||
days-before-pr-stale: 45 | ||
days-before-pr-close: -1 |
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
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
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,41 @@ | ||
--- | ||
title: crewAI Testing | ||
description: Learn how to test your crewAI Crew and evaluate their performance. | ||
--- | ||
|
||
## Introduction | ||
|
||
Testing is a crucial part of the development process, and it is essential to ensure that your crew is performing as expected. And with crewAI, you can easily test your crew and evaluate its performance using the built-in testing capabilities. | ||
|
||
### Using the Testing Feature | ||
|
||
We added the CLI command `crewai test` to make it easy to test your crew. This command will run your crew for a specified number of iterations and provide detailed performance metrics. | ||
The parameters are `n_iterations` and `model` which are optional and default to 2 and `gpt-4o-mini` respectively. For now the only provider available is OpenAI. | ||
|
||
```bash | ||
crewai test | ||
``` | ||
|
||
If you want to run more iterations or use a different model, you can specify the parameters like this: | ||
|
||
```bash | ||
crewai test --n_iterations 5 --model gpt-4o | ||
``` | ||
|
||
What happens when you run the `crewai test` command is that the crew will be executed for the specified number of iterations, and the performance metrics will be displayed at the end of the run. | ||
|
||
A table of scores at the end will show the performance of the crew in terms of the following metrics: | ||
``` | ||
Task Scores | ||
(1-10 Higher is better) | ||
┏━━━━━━━━━━━━┳━━━━━━━┳━━━━━━━┳━━━━━━━━━━━━┓ | ||
┃ Tasks/Crew ┃ Run 1 ┃ Run 2 ┃ Avg. Total ┃ | ||
┡━━━━━━━━━━━━╇━━━━━━━╇━━━━━━━╇━━━━━━━━━━━━┩ | ||
│ Task 1 │ 10.0 │ 9.0 │ 9.5 │ | ||
│ Task 2 │ 9.0 │ 9.0 │ 9.0 │ | ||
│ Crew │ 9.5 │ 9.0 │ 9.2 │ | ||
└────────────┴───────┴───────┴────────────┘ | ||
``` | ||
|
||
The example above shows the test results for two runs of the crew with two tasks, with the average total score for each task and the crew as a whole. | ||
|
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
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
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
Oops, something went wrong.