DCP-2217 feat: add AI Task Builder core features#260
Merged
SeanAlexanderHarris merged 3 commits intoDCP-2215-prolific-cli-error-handling-refactorfrom Dec 11, 2025
Conversation
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
78b9ed7 to
11ce80f
Compare
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
c6fb53e to
239147e
Compare
SeanAlexanderHarris
approved these changes
Dec 8, 2025
4b1ffb2
into
DCP-2215-prolific-cli-error-handling-refactor
4 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds core AI Task Builder (AITB) functionality to the CLI, including model support, instruction examples, and study creation integration.
Dependencies
Merge order: #259 → #258 → #260
Changes
Model Support
DataCollectionMethodandDataCollectionIDfields to Study modelDC_TOOLdata collection method for AITB studiesExample Files
example-instructions.jsonwith multiple choice and free text instruction examplesstandard-sample-aitaskbuilder.jsonwith proper AITB study configurationStudy Creation Integration
study createcommand to support AITB batch integration--aitb-batch-idflag for linking studies to AITB batches--instructionsflag for inline instruction specification--instructions-fileflag for loading instructions from JSON fileUsage Example
# Create a study linked to an AITB batch prolific study create \ --file study.json \ --aitb-batch-id abc123 \ --instructions-file instructions.jsonTesting
All existing tests pass. Commands work correctly with the enhanced study creation flow.