From bddfe1c780a76a16a8375657f90e79674ba80ab1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Moura?= Date: Wed, 21 May 2025 03:13:14 -0700 Subject: [PATCH] unnecesary --- docs/usage_examples/inject_date_example.py | 39 ---------------------- 1 file changed, 39 deletions(-) delete mode 100644 docs/usage_examples/inject_date_example.py diff --git a/docs/usage_examples/inject_date_example.py b/docs/usage_examples/inject_date_example.py deleted file mode 100644 index 32a97122f..000000000 --- a/docs/usage_examples/inject_date_example.py +++ /dev/null @@ -1,39 +0,0 @@ -from crewai import Agent, Task, Crew -from datetime import datetime - -agent = Agent( - role="research_analyst", - goal="Provide timely and accurate research", - backstory="You are a research analyst who always provides up-to-date information.", - inject_date=True, # Enable automatic date injection -) - -agent_custom_format = Agent( - role="financial_analyst", - goal="Provide financial insights with proper date context", - backstory="You are a financial analyst who needs precise date formatting.", - inject_date=True, - date_format="%B %d, %Y", # Format as "May 21, 2025" (Month Day, Year) -) - -task = Task( - description="Research market trends and provide analysis", - expected_output="A comprehensive report on current market trends", - agent=agent, -) -# - -task_custom = Task( - description="Analyze financial data and provide insights", - expected_output="A detailed financial analysis report", - agent=agent_custom_format, -) -# - -crew = Crew( - agents=[agent, agent_custom_format], - tasks=[task, task_custom], -) - -result = crew.kickoff() -print(result)