mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-07 15:18:29 +00:00
- 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>
19 lines
688 B
Python
19 lines
688 B
Python
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!')
|