mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-11 17:18:29 +00:00
Address GitHub review feedback for selective execution feature
- Enhanced error messages with specific action and available tags information - Improved type safety by removing problematic TaskSelectorType alias - Added comprehensive tag validation with normalization in Task class - Fixed edge case handling for untagged tasks in tag selector - Added test for invalid tag types validation - Maintained backward compatibility while optimizing performance Co-Authored-By: João <joao@crewai.com>
This commit is contained in:
18
test_basic_functionality.py
Normal file
18
test_basic_functionality.py
Normal file
@@ -0,0 +1,18 @@
|
||||
from crewai import Crew, Agent, Task, Process
|
||||
|
||||
print('Basic imports work')
|
||||
|
||||
agent = Agent(role="Test", goal="Test", backstory="Test")
|
||||
task = Task(description='test', expected_output='test', agent=agent, tags=['test'])
|
||||
print('Tags field works:', task.tags)
|
||||
|
||||
crew = Crew(agents=[agent], tasks=[task], task_selector=lambda inputs, task: True)
|
||||
print('Task selector field works')
|
||||
|
||||
print('Process.selective exists:', hasattr(Process, 'selective'))
|
||||
print('Process.selective value:', Process.selective if hasattr(Process, 'selective') else 'Not found')
|
||||
|
||||
selector = Crew.create_tag_selector()
|
||||
print('create_tag_selector works:', callable(selector))
|
||||
|
||||
print('All basic functionality tests passed!')
|
||||
Reference in New Issue
Block a user