updating CLI template and guaranteeing tasks order

This commit is contained in:
João Moura
2024-03-11 19:53:34 -03:00
parent 35f8919e73
commit eaac627600
5 changed files with 15 additions and 12 deletions

View File

@@ -1,7 +1,8 @@
from crewai import Agent, Crew, Process, Task
from crewai.project import CrewBase, agent, crew, task
from .tools.custom_tool import MyCustomTool
# Uncomment the following line to use an example of a custom tool
# from .tools.custom_tool import MyCustomTool
# Check our tools documentations for more information on how to use them
# from crewai_tools import SerperDevTool
@@ -16,7 +17,7 @@ class {{crew_name}}Crew():
def researcher(self) -> Agent:
return Agent(
config=self.agents_config['researcher'],
# tools=[MyCustomTool()], # Example of custom tool
# tools=[MyCustomTool()], # Example of custom tool, loaded on the beginning of file
verbose=True
)

View File

@@ -4,5 +4,7 @@ from .crew import {{crew_name}}Crew
def run():
# Replace with your inputs, it will automatically interpolate any tasks and agents information
inputs = {'topic': 'AI LLMs'}
inputs = {
'topic': 'AI LLMs'
}
{{crew_name}}Crew().crew().kickoff(inputs=inputs)

View File

@@ -1,6 +1,3 @@
# For this make sure to install the tools package
# pip install 'crewai[tools]'
from crewai_tools import BaseTool