Compare commits

..

24 Commits

Author SHA1 Message Date
Lorenze Jay
bdbc1db365 new cassette for test 2024-12-12 11:54:19 -08:00
Brandon Hancock
2162af1e27 add back in vcr 2024-12-12 14:19:43 -05:00
Brandon Hancock
476d7433f9 more fixes 2024-12-12 14:12:35 -05:00
Brandon Hancock
8ad6bf5cd1 Fix duplicate document issue 2024-12-12 14:10:52 -05:00
Brandon Hancock
c8749dd48e Update casettes 2024-12-12 14:03:26 -05:00
Brandon Hancock
de96f56c95 Drop patch 2024-12-12 13:43:36 -05:00
Brandon Hancock
1ba5c49ebe Investigating upsert 2024-12-12 13:13:04 -05:00
Brandon Hancock
d7e2ac490e generate new yaml for failing test 2024-12-12 13:07:46 -05:00
Brandon Hancock
307e37d0b6 update chromadb which seems to have issues with upsert 2024-12-12 13:04:35 -05:00
Brandon Hancock
6c23f6e03c Merge branch 'bugfix/cleanup-agent-ops-checks' of https://github.com/joaomdmoura/crewAI into bugfix/cleanup-agent-ops-checks 2024-12-12 12:58:10 -05:00
Brandon Hancock
4d2c03ec26 experimenting to see if unique content is an issue with knowledge 2024-12-12 12:54:09 -05:00
Brandon Hancock
4448cf8463 experimenting to see if unique content is an issue with knowledge 2024-12-12 12:53:10 -05:00
Brandon Hancock (bhancock_ai)
c1c4f3651a Merge branch 'main' into bugfix/cleanup-agent-ops-checks 2024-12-12 12:41:49 -05:00
Brandon Hancock
69ab290f13 Merge branch 'bugfix/cleanup-agent-ops-checks' of https://github.com/joaomdmoura/crewAI into bugfix/cleanup-agent-ops-checks 2024-12-12 12:38:40 -05:00
Brandon Hancock
0924fef70a Fix tests 2024-12-12 12:38:26 -05:00
Brandon Hancock (bhancock_ai)
18b36b3f1f Merge branch 'main' into bugfix/cleanup-agent-ops-checks 2024-12-12 12:33:23 -05:00
Brandon Hancock
f1a7760cc0 Merge branch 'bugfix/drop-pkg-resources' into bugfix/cleanup-agent-ops-checks 2024-12-12 12:31:12 -05:00
Brandon Hancock
934043d234 remove pkg_resources which was causing issues 2024-12-12 12:17:17 -05:00
Brandon Hancock
2aae7f6fe6 update tools 2024-12-12 11:00:42 -05:00
Brandon Hancock
e9e7048f55 add back in vcr 2024-12-12 10:51:09 -05:00
Brandon Hancock
d3e1cf2bed Merge branch 'bugfix/cleanup-agent-ops-checks' of https://github.com/joaomdmoura/crewAI into bugfix/cleanup-agent-ops-checks 2024-12-12 10:47:56 -05:00
Brandon Hancock
850b853e94 Trying to fix tests 2024-12-12 10:47:34 -05:00
Brandon Hancock (bhancock_ai)
323420c99c Merge branch 'main' into bugfix/cleanup-agent-ops-checks 2024-12-12 10:24:28 -05:00
Brandon Hancock
cd5e4ff574 apply agent ops changes and resolve merge conflicts 2024-12-12 10:23:11 -05:00
14 changed files with 17 additions and 19 deletions

View File

@@ -44,7 +44,7 @@ To get started with CrewAI, follow these simple steps:
### 1. Installation
Ensure you have Python >=3.10 <3.13 installed on your system. CrewAI uses [UV](https://docs.astral.sh/uv/) for dependency management and package handling, offering a seamless setup and execution experience.
Ensure you have Python >=3.10 <=3.12 installed on your system. CrewAI uses [UV](https://docs.astral.sh/uv/) for dependency management and package handling, offering a seamless setup and execution experience.
First, install CrewAI:

View File

@@ -7,7 +7,7 @@ icon: wrench
<Note>
**Python Version Requirements**
CrewAI requires `Python >=3.10 and <3.13`. Here's how to check your version:
CrewAI requires `Python >=3.10 and <=3.12`. Here's how to check your version:
```bash
python3 --version
```

View File

@@ -3,7 +3,7 @@ name = "crewai"
version = "0.86.0"
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."
readme = "README.md"
requires-python = ">=3.10,<3.13"
requires-python = ">=3.10,<=3.12"
authors = [
{ name = "Joao Moura", email = "joao@crewai.com" }
]

View File

@@ -4,7 +4,7 @@ Welcome to the {{crew_name}} Crew project, powered by [crewAI](https://crewai.co
## Installation
Ensure you have Python >=3.10 <3.13 installed on your system. This project uses [UV](https://docs.astral.sh/uv/) for dependency management and package handling, offering a seamless setup and execution experience.
Ensure you have Python >=3.10 <=3.12 installed on your system. This project uses [UV](https://docs.astral.sh/uv/) for dependency management and package handling, offering a seamless setup and execution experience.
First, if you haven't already, install uv:

View File

@@ -3,7 +3,7 @@ name = "{{folder_name}}"
version = "0.1.0"
description = "{{name}} using crewAI"
authors = [{ name = "Your Name", email = "you@example.com" }]
requires-python = ">=3.10,<3.13"
requires-python = ">=3.10,<=3.12"
dependencies = [
"crewai[tools]>=0.86.0,<1.0.0"
]

View File

@@ -4,7 +4,7 @@ Welcome to the {{crew_name}} Crew project, powered by [crewAI](https://crewai.co
## Installation
Ensure you have Python >=3.10 <3.13 installed on your system. This project uses [UV](https://docs.astral.sh/uv/) for dependency management and package handling, offering a seamless setup and execution experience.
Ensure you have Python >=3.10 <=3.12 installed on your system. This project uses [UV](https://docs.astral.sh/uv/) for dependency management and package handling, offering a seamless setup and execution experience.
First, if you haven't already, install uv:

View File

@@ -3,7 +3,7 @@ name = "{{folder_name}}"
version = "0.1.0"
description = "{{name}} using crewAI"
authors = [{ name = "Your Name", email = "you@example.com" }]
requires-python = ">=3.10,<3.13"
requires-python = ">=3.10,<=3.12"
dependencies = [
"crewai[tools]>=0.86.0,<1.0.0",
]

View File

@@ -5,7 +5,7 @@ custom tools to power up your crews.
## Installing
Ensure you have Python >=3.10 <3.13 installed on your system. This project
Ensure you have Python >=3.10 <=3.12 installed on your system. This project
uses [UV](https://docs.astral.sh/uv/) for dependency management and package
handling, offering a seamless setup and execution experience.

View File

@@ -3,7 +3,7 @@ name = "{{folder_name}}"
version = "0.1.0"
description = "Power up your crews with {{folder_name}}"
readme = "README.md"
requires-python = ">=3.10,<3.13"
requires-python = ">=3.10,<=3.12"
dependencies = [
"crewai[tools]>=0.86.0"
]

View File

@@ -46,4 +46,5 @@ class BaseKnowledgeSource(BaseModel, ABC):
Save the documents to the storage.
This method should be called after the chunks and embeddings are generated.
"""
print("CHUNKS: ", self.chunks)
self.storage.save(self.chunks)

View File

@@ -419,10 +419,9 @@ class ToolUsage:
elif value.lower() in [
"true",
"false",
"null",
]: # Check for boolean and null values
value = value.lower().capitalize()
elif value.lower() == "null":
value = "None"
value = value.lower()
else:
# Assume the value is a string and needs quotes
value = '"' + value.replace('"', '\\"') + '"'

View File

@@ -1,7 +1,6 @@
import json
from datetime import date, datetime
from decimal import Decimal
from enum import Enum
from uuid import UUID
from pydantic import BaseModel
@@ -11,7 +10,7 @@ class CrewJSONEncoder(json.JSONEncoder):
def default(self, obj):
if isinstance(obj, BaseModel):
return self._handle_pydantic_model(obj)
elif isinstance(obj, UUID) or isinstance(obj, Decimal) or isinstance(obj, Enum):
elif isinstance(obj, UUID) or isinstance(obj, Decimal):
return str(obj)
elif isinstance(obj, datetime) or isinstance(obj, date):

View File

@@ -231,7 +231,7 @@ class TestDeployCommand(unittest.TestCase):
[project]
name = "test_project"
version = "0.1.0"
requires-python = ">=3.10,<3.13"
requires-python = ">=3.10,<=3.12"
dependencies = ["crewai"]
""",
)
@@ -250,7 +250,7 @@ class TestDeployCommand(unittest.TestCase):
[project]
name = "test_project"
version = "0.1.0"
requires-python = ">=3.10,<3.13"
requires-python = ">=3.10,<=3.12"
dependencies = ["crewai"]
""",
)

5
uv.lock generated
View File

@@ -1,10 +1,9 @@
version = 1
requires-python = ">=3.10, <3.13"
requires-python = ">=3.10, <=3.12"
resolution-markers = [
"python_full_version < '3.11'",
"python_full_version == '3.11.*'",
"python_full_version >= '3.12' and python_full_version < '3.12.4'",
"python_full_version >= '3.12.4'",
"python_full_version >= '3.12'",
]
[[package]]