src.integrations.nlp_base module#
Base class for Natural Language task creation.
Provides shared functionality for create_project and add_feature tools.
- class src.integrations.nlp_base.NaturalLanguageTaskCreator[source]#
Bases:
ABCBase class for natural language task creation tools.
Provides common functionality for: - Task creation on kanban boards - Safety checks and validation - Task classification - Error handling
- __init__(kanban_client, ai_engine=None, subtask_manager=None, complexity='standard')[source]#
Initialize the base task creator.
- Parameters:
kanban_client (
Any) – Kanban board client with create_task methodai_engine (
Any) – Optional AI engine for enhanced processingsubtask_manager (
Any) – Optional SubtaskManager for registering decomposed subtaskscomplexity (
str) – Project complexity level: “prototype”, “standard”, “enterprise”
- Return type:
None
- async create_tasks_on_board(tasks, skip_validation=False, update_dependencies=True)[source]#
Create tasks on the kanban board.
This is the main shared functionality between create_project and add_feature.
- Parameters:
- Returns:
List of created tasks
- Return type:
- Raises:
RuntimeError – If kanban client doesn’t support task creation
- async apply_safety_checks(tasks)[source]#
Apply safety checks to ensure logical task ordering.
This method can be overridden by subclasses for custom safety logic.
- classify_tasks_with_details(tasks)[source]#
Classify tasks and return detailed classification info per task.
- abstractmethod async process_natural_language(description, **kwargs)[source]#
Process natural language description into tasks.
This method must be implemented by subclasses.