crewAI icon indicating copy to clipboard operation
crewAI copied to clipboard

[Docs] Standardize max_execution_time

Open yuripourre opened this issue 1 year ago • 5 comments

Changes the attribute name to a human-readable name, following the same pattern other attributes are doing.

yuripourre avatar May 28 '24 16:05 yuripourre

This goes against #599. I wonder what would be better.

gvieira avatar Jun 07 '24 00:06 gvieira

@gvieira, true! Personally, I prefer #599 approach but having any standard is better than mixed naming. Feel free to close this PR in favor of #599.

yuripourre avatar Jun 09 '24 03:06 yuripourre

if it makes a difference, when i was coding I had trouble using the documentation because I was guessing on the name to use in code because there werent examples that used all of the properties. A human readable description would be best to pair with the literal property name (as used in code). The friendly value doesnt really provide any use to developers.

contractorwolf avatar Jun 10 '24 04:06 contractorwolf

@contractorwolf I'm confused! 😄 Which one do you prefer?

gvieira avatar Jun 12 '24 15:06 gvieira

This PR is stale because it has been open for 45 days with no activity.

github-actions[bot] avatar Sep 25 '24 12:09 github-actions[bot]

Disclaimer: This review was made by a crew of AI Agents.

Code Review Comment for PR #708: Standardize max_execution_time

Overview

This PR proposes changes to the documentation of the max_execution_time parameter in docs/core-concepts/Agents.md, transitioning the parameter name to title case for consistency. While the changes are a step in the right direction, additional improvements are necessary to enhance clarity and usability for developers.

Code Quality Findings

1. Formatting Consistency

  • ✅ The new title case format (Max Execution Time) aligns correctly with other parameters like Max Iter and Max RPM, which boosts readability and standardization across the documentation.
  • 🔍 It's crucial to maintain consistent formatting throughout as it impacts the overall quality of the documentation.

2. Spelling and Punctuation

  • ❌ There is a spelling error in the description where "menaning" should read as "meaning."
  • ❌ Additionally, the documentation lacks a period at the end of the parameter description, reducing the professional appearance of the documentation.

Recommendations for Improvement

1. Parameter Description Correction

To ensure clarity, the parameter description should be updated as follows:

| **Max Execution Time** *(optional)*   | Maximum execution time for an agent to execute a task. It's optional and can be left unspecified, with a default value of `None`, meaning no max execution time. |

2. Enhancements Suggestions

To provide even more clarity, I suggest implementing the following changes:

  1. Specify the time unit for Max Execution Time. For example, mention if it refers to seconds or minutes.
  2. Provide an example value to demonstrate practical usage.

Recommended enhanced version:

| **Max Execution Time** *(optional)*   | Maximum execution time in seconds for an agent to execute a task. It's optional and can be left unspecified, with a default value of `None`, meaning no max execution time. Example: `300` for 5 minutes timeout. |

Summary of Required Changes

  1. Correct the spelling from "menaning" to "meaning."
  2. Add the missing period at the end of the description.
  3. Consider including time unit specifications and an example value to improve documentation quality.

Historical Context

In previous PRs that modified similar parameters in this documentation file, consistency and clarity were often highlighted as key issues. Addressing these factors in this PR not only enhances the quality of this specific parameter documentation but also maintains the overall integrity of the documents across the codebase.

Impact Assessment

  • 🟢 Documentation Quality: The proposed changes significantly enhance consistency in naming conventions.
  • 🟡 Clarity: Additional elaboration on time units and example values will further improve user comprehension.
  • 🟢 Maintainability: Such standardization aligns with existing documentation protocols, making future updates easier.

Ultimately, while the changes made in this PR are beneficial, incorporating the recommended improvements will take the documentation quality to the next level, ensuring it meets the needs of all developers working within the framework. Thank you for your contributions!

joaomdmoura avatar Dec 05 '24 17:12 joaomdmoura

Hi @yuripourre, thanks for the PR.

Our docs changed a lot in the last months, you can check them here ( https://docs.crewai.com/concepts/agents ). Let us know if the PR is still relevant, in the meantime I'll close it.

Thanks

pythonbyte avatar Dec 09 '24 13:12 pythonbyte