Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewAI empowers agents to work together seamlessly, tackling complex tasks.
chore: Update date to current year in template (#1860)
Daniel Dowler673a38c5d97b
diff --git a/src/crewai/cli/templates/crew/config/tasks.yaml b/src/crewai/cli/templates/crew/config/tasks.yamlindex e6c0870a2..44bd89865 100644--- a/src/crewai/cli/templates/crew/config/tasks.yaml+++ b/src/crewai/cli/templates/crew/config/tasks.yaml@@ -2,7 +2,7 @@ research_task:description: >Conduct a thorough research about {topic}Make sure you find any interesting and relevant information given- the current year is 2024.+ the current year is {current_year}.expected_output: >A list with 10 bullet points of the most relevant information about {topic}agent: researcherdiff --git a/src/crewai/cli/templates/crew/main.py b/src/crewai/cli/templates/crew/main.pyindex 8f68a83c7..104f146c0 100644--- a/src/crewai/cli/templates/crew/main.py+++ b/src/crewai/cli/templates/crew/main.py@@ -2,6 +2,8 @@import sysimport warnings+from datetime import datetime+from {{folder_name}}.crew import {{crew_name}}warnings.filterwarnings("ignore", category=SyntaxWarning, module="pysbd")@@ -16,7 +18,8 @@ def run():Run the crew."""inputs = {- 'topic': 'AI LLMs'+ 'topic': 'AI LLMs',+ 'current_year': str(datetime.now().year)}try: