cutting new version with no yaml parsing

This commit is contained in:
João Moura
2024-05-13 23:09:29 -03:00
parent a0dcc65dac
commit 643c1d6d31
3 changed files with 4 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
[tool.poetry] [tool.poetry]
name = "crewai" name = "crewai"
version = "0.30.7" version = "0.30.8"
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 <joao@crewai.com>"] authors = ["Joao Moura <joao@crewai.com>"]
readme = "README.md" readme = "README.md"

View File

@@ -6,7 +6,7 @@ authors = ["Your Name <you@example.com>"]
[tool.poetry.dependencies] [tool.poetry.dependencies]
python = ">=3.10,<=3.13" python = ">=3.10,<=3.13"
crewai = {extras = ["tools"], version = "^0.30.7"} crewai = {extras = ["tools"], version = "^0.30.8"}
[tool.poetry.scripts] [tool.poetry.scripts]
{{folder_name}} = "{{folder_name}}.main:run" {{folder_name}} = "{{folder_name}}.main:run"

View File

@@ -5,7 +5,6 @@ from pathlib import Path
import yaml import yaml
from dotenv import load_dotenv from dotenv import load_dotenv
from crewai.utilities.parser import YamlParser
load_dotenv() load_dotenv()
@@ -46,7 +45,7 @@ def CrewBase(cls):
@staticmethod @staticmethod
def load_yaml(config_path: str): def load_yaml(config_path: str):
with open(config_path, "r") as file: with open(config_path, "r") as file:
parsedContent = YamlParser.parse(file) # type: ignore # Argument 1 to "parse" has incompatible type "TextIOWrapper"; expected "YamlParser" # parsedContent = YamlParser.parse(file) # type: ignore # Argument 1 to "parse" has incompatible type "TextIOWrapper"; expected "YamlParser"
return yaml.safe_load(parsedContent) return yaml.safe_load(file)
return WrappedClass return WrappedClass