Skip to content

feat: the participant is quizzed periodically during a group chat - #1174

Open
jacyanthis wants to merge 13 commits into
PAIR-code:mainfrom
jacyanthis:quiz
Open

feat: the participant is quizzed periodically during a group chat#1174
jacyanthis wants to merge 13 commits into
PAIR-code:mainfrom
jacyanthis:quiz

Conversation

@jacyanthis

Copy link
Copy Markdown
Contributor

This PR builds on #1171 and should only be merged after it is merged.

This PR adds a periodic quiz for the participant to share their reactions to the group chat. By default, this pauses the turn-based group chat after each third of the minimum message count (up to 3 quizzes; fewer if the minimum is fewer than 3). It asks two questions: a 7-point Likert ("Do you like the process so far?") and a free-text explanation ("In one sentence, describe what you currently like or dislike.").

This is gated by a magic participant variable, _isQuizzed (boolean). If the chat is not turn-based, then this variable is ignored, and the variable editor warns the experimenter that it is being ignored.

quiz-example

@jacyanthis

Copy link
Copy Markdown
Contributor Author

Possible review: @jimbojw
CC: @kenburke @cjqian

@jacyanthis

Copy link
Copy Markdown
Contributor Author

Manual testing per template:

Set up an experiment with (i) a participant who is assigned the boolean variable _isQuizzed as true and (ii) a turn-based group chat stage with an agent mediator and a minimum message count of 3. No agent participants are required.

Expected behavior: The quiz pauses the chat after each of the first three messages, resuming each time once the quiz is submitted.

# Conflicts:
#	docs/assets/api/schemas.json
#	frontend/src/components/chat/chat_input.ts
#	frontend/src/components/chat/chat_interface.ts
#	frontend/src/components/chat/chat_message.ts
#	frontend/src/components/stages/group_chat_participant_view.ts
#	scripts/deliberate_lab/types.py
#	utils/src/stages/chat_stage.ts
#	utils/src/stages/chat_stage.validation.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant