mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-28 09:38:17 +00:00
added docs and tests
This commit is contained in:
@@ -18,11 +18,10 @@ class ConditionalTask(Task):
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
*args,
|
||||
condition: Callable[[Any], bool],
|
||||
**kwargs,
|
||||
):
|
||||
super().__init__(*args, **kwargs)
|
||||
super().__init__(**kwargs)
|
||||
self.condition = condition
|
||||
|
||||
def should_execute(self, context: TaskOutput) -> bool:
|
||||
|
||||
Reference in New Issue
Block a user