mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-05-03 08:12:39 +00:00
Making config optional with default value as it's WIP and Adding new treatment for wrong agent tool calls
This commit is contained in:
@@ -12,7 +12,6 @@ class Crew(BaseModel):
|
||||
Class that represents a group of agents, how they should work together and
|
||||
their tasks.
|
||||
"""
|
||||
config: Optional[Json] = Field(description="Configuration of the crew.")
|
||||
tasks: Optional[List[Task]] = Field(description="List of tasks")
|
||||
agents: Optional[List[Agent]] = Field(description="List of agents in this crew.")
|
||||
process: Process = Field(
|
||||
@@ -23,6 +22,10 @@ class Crew(BaseModel):
|
||||
description="Verbose mode for the Agent Execution",
|
||||
default=False
|
||||
)
|
||||
config: Optional[Json] = Field(
|
||||
description="Configuration of the crew.",
|
||||
default=None
|
||||
)
|
||||
|
||||
@root_validator(pre=True)
|
||||
def check_config(_cls, values):
|
||||
|
||||
Reference in New Issue
Block a user