Preparing to cut new version

This commit is contained in:
Joao Moura
2023-11-18 22:09:42 -03:00
parent 5163a3a7b5
commit 13c19c8032
3 changed files with 13 additions and 10 deletions

View File

@@ -7,8 +7,8 @@
The power of AI collaboration has too much to offer. The power of AI collaboration has too much to offer.
CrewAI is designed to enable AI agents to assume roles, share goals, and operate in a cohesive unit - much like a well-oiled crew. Whether you're building a smart assistant platform, an automated customer service ensemble, or a multi-agent research team, CrewAI provides the backbone for sophisticated multi-agent interactions. CrewAI is designed to enable AI agents to assume roles, share goals, and operate in a cohesive unit - much like a well-oiled crew. Whether you're building a smart assistant platform, an automated customer service ensemble, or a multi-agent research team, CrewAI provides the backbone for sophisticated multi-agent interactions.
[Talk with the Docs](https://chat.openai.com/g/g-qqTuUWsBY-crewai-assistant) - 🤖 [Talk with the Docs](https://chat.openai.com/g/g-qqTuUWsBY-crewai-assistant)
[Documention Wiki](https://github.com/joaomdmoura/CrewAI/wiki) - 📄 [Documention Wiki](https://github.com/joaomdmoura/CrewAI/wiki)
## Getting Started ## Getting Started
@@ -31,6 +31,7 @@ researcher = Agent(
goal='Discover new insights', goal='Discover new insights',
backstory="You're a world class researcher working on a major data science company", backstory="You're a world class researcher working on a major data science company",
verbose=True verbose=True
# llm=OpenAI(temperature=0.7, model_name="gpt-4"). It uses langchain.chat_models, default is GPT4
) )
writer = Agent( writer = Agent(
role='Writer', role='Writer',
@@ -47,7 +48,7 @@ task2 = Task(description='Write a blog post on AI advancements', agent=writer)
crew = Crew( crew = Crew(
agents=[researcher, writer], agents=[researcher, writer],
tasks=[task1, task2], tasks=[task1, task2],
verbose=True, # Crew verbose more will let you know what tasks arebeing worked on verbose=True # Crew verbose more will let you know what tasks are being worked on
process=Process.sequential # Sequential process will have tasks executed one after the other and the outcome of the previous one is passed as extra content into this next. process=Process.sequential # Sequential process will have tasks executed one after the other and the outcome of the previous one is passed as extra content into this next.
) )

View File

@@ -72,13 +72,15 @@ class Crew(BaseModel):
tools = AgentTools(agents=self.agents).tools() tools = AgentTools(agents=self.agents).tools()
task.tools += tools task.tools += tools
if self.verbose: self.__log(f"\nWorking Agent: {task.agent.role}")
print(f"Working Agent: {task.agent.role}") self.__log(f"Starting Task: {task.description} ...")
print(f"Starting Task: {task.description} ...")
task_outcome = task.execute(task_outcome) task_outcome = task.execute(task_outcome)
if self.verbose: self.__log(f"Task output: {task_outcome}")
print(f"Task output: {task_outcome}")
return task_outcome return task_outcome
def __log(self, message):
if self.verbose:
print(message)

View File

@@ -1,7 +1,7 @@
[tool.poetry] [tool.poetry]
name = "crewai" name = "crewai"
version = "0.1.0" version = "0.1.1"
description = "Cutting-edge framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewAI empowers agents to work together seamlessly, tackling complex tasks." description = "Cutting-edge framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewAI empowers agents to work together seamlessly, tackling complex tasks."
authors = ["Joao Moura <joaomdmoura@gmail.com>"] authors = ["Joao Moura <joaomdmoura@gmail.com>"]
readme = "README.md" readme = "README.md"