From 13c19c80320a7291c07809c865975bba52aed5ab Mon Sep 17 00:00:00 2001 From: Joao Moura Date: Sat, 18 Nov 2023 22:09:42 -0300 Subject: [PATCH] Preparing to cut new version --- README.md | 7 ++++--- crewai/crew.py | 14 ++++++++------ pyproject.toml | 2 +- 3 files changed, 13 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index cf20bd463..3daff0551 100644 --- a/README.md +++ b/README.md @@ -7,8 +7,8 @@ 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. -[Talk with the Docs](https://chat.openai.com/g/g-qqTuUWsBY-crewai-assistant) -[Documention Wiki](https://github.com/joaomdmoura/CrewAI/wiki) +- 🤖 [Talk with the Docs](https://chat.openai.com/g/g-qqTuUWsBY-crewai-assistant) +- 📄 [Documention Wiki](https://github.com/joaomdmoura/CrewAI/wiki) ## Getting Started @@ -31,6 +31,7 @@ researcher = Agent( goal='Discover new insights', backstory="You're a world class researcher working on a major data science company", verbose=True + # llm=OpenAI(temperature=0.7, model_name="gpt-4"). It uses langchain.chat_models, default is GPT4 ) writer = Agent( role='Writer', @@ -47,7 +48,7 @@ task2 = Task(description='Write a blog post on AI advancements', agent=writer) crew = Crew( agents=[researcher, writer], 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. ) diff --git a/crewai/crew.py b/crewai/crew.py index 0a3bdc0c2..883a98ef3 100644 --- a/crewai/crew.py +++ b/crewai/crew.py @@ -72,13 +72,15 @@ class Crew(BaseModel): tools = AgentTools(agents=self.agents).tools() task.tools += tools - if self.verbose: - print(f"Working Agent: {task.agent.role}") - print(f"Starting Task: {task.description} ...") + self.__log(f"\nWorking Agent: {task.agent.role}") + self.__log(f"Starting Task: {task.description} ...") task_outcome = task.execute(task_outcome) - if self.verbose: - print(f"Task output: {task_outcome}") + self.__log(f"Task output: {task_outcome}") - return task_outcome \ No newline at end of file + return task_outcome + + def __log(self, message): + if self.verbose: + print(message) \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index b7fd3f572..320cf429b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [tool.poetry] 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." authors = ["Joao Moura "] readme = "README.md"