"""Add task data action for {{ name }}."""

from __future__ import annotations

from typing import Any

from synapse_sdk.plugins.actions.add_task_data import AddTaskDataAction


class AddTaskData(AddTaskDataAction):
    """Add task data action for {{ name }}."""

    action_name = 'add_task_data'

    def convert_data_from_file(
        self,
        primary_file_url: str,
        primary_file_name: str | None,
        data_file_url: str,
        data_file_name: str | None,
        task_data: dict[str, Any] | None = None,
    ) -> dict[str, Any]:
        """Convert file-based data into task data payload."""
        # TODO: Implement file-based conversion logic here.
        return {}

    def convert_data_from_inference(
        self,
        inference_data: Any,
        task_data: dict[str, Any] | None = None,
    ) -> dict[str, Any]:
        """Convert inference output into task data payload."""
        # TODO: Implement inference conversion logic here.
        return inference_data
