Skip to content

DCP-2217 feat: add AI Task Builder core features#260

Merged
SeanAlexanderHarris merged 3 commits intoDCP-2215-prolific-cli-error-handling-refactorfrom
DCP-2217-prolific-cli-aitb-core-features
Dec 11, 2025
Merged

DCP-2217 feat: add AI Task Builder core features#260
SeanAlexanderHarris merged 3 commits intoDCP-2215-prolific-cli-error-handling-refactorfrom
DCP-2217-prolific-cli-aitb-core-features

Conversation

@ajmalkhan-eng
Copy link
Contributor

@ajmalkhan-eng ajmalkhan-eng commented Dec 7, 2025

Summary

This PR adds core AI Task Builder (AITB) functionality to the CLI, including model support, instruction examples, and study creation integration.

Dependencies

⚠️ Dependency Chain:

Merge order: #259#258#260

Changes

Model Support

  • Add DataCollectionMethod and DataCollectionID fields to Study model
  • Support DC_TOOL data collection method for AITB studies
  • Update study view rendering to display data collection information

Example Files

  • Add example-instructions.json with multiple choice and free text instruction examples
  • Update standard-sample-aitaskbuilder.json with proper AITB study configuration

Study Creation Integration

  • Enhanced study create command to support AITB batch integration
  • Add --aitb-batch-id flag for linking studies to AITB batches
  • Add --instructions flag for inline instruction specification
  • Add --instructions-file flag for loading instructions from JSON file
  • Automatic setup of data collection method and ID when AITB batch is specified

Usage Example

# Create a study linked to an AITB batch
prolific study create \
  --file study.json \
  --aitb-batch-id abc123 \
  --instructions-file instructions.json

Testing

All existing tests pass. Commands work correctly with the enhanced study creation flow.

@ajmalkhan-eng ajmalkhan-eng requested a review from a team as a code owner December 7, 2025 23:00
@prolific-snyk
Copy link

prolific-snyk commented Dec 7, 2025

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues
Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@ajmalkhan-eng ajmalkhan-eng changed the title feat: add AI Task Builder core features DCP-2217 feat: add AI Task Builder core features Dec 7, 2025
@ajmalkhan-eng ajmalkhan-eng force-pushed the DCP-2215-prolific-cli-error-handling-refactor branch from 78b9ed7 to 11ce80f Compare December 7, 2025 23:03
Add support for configuring studies with AI Task Builder data collection:
- Add AITaskBuilderDataCollection field to Study model
- Add AITaskBuilderPayload to CreateStudyPayload
- Render AITB batch ID in study view
- Update go.mod dependencies
Add comprehensive instruction examples for AITB:
- Add example-instructions.json with multiple question types
- Update standard-sample-aitaskbuilder.json with proper formatting
- Update batch instructions command help with answer_limit example
- Improve dataset upload command description
Add support for creating studies with AITB configuration:
- Add --aitb-batch-id flag to study create command
- Add --auto-publish flag for automatic study publication
- Automatically transition studies to PUBLISHED state when --auto-publish is set
- Update tests to cover new AITB and auto-publish functionality
@SeanAlexanderHarris SeanAlexanderHarris merged commit 4b1ffb2 into DCP-2215-prolific-cli-error-handling-refactor Dec 11, 2025
4 checks passed
@SeanAlexanderHarris SeanAlexanderHarris deleted the DCP-2217-prolific-cli-aitb-core-features branch December 11, 2025 02:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants