Skip to content

feat: chat setting to prevent agents ending or declining to respond - #1185

Open
jacyanthis wants to merge 3 commits into
PAIR-code:mainfrom
jacyanthis:option-prevent-agents-ending-chat
Open

feat: chat setting to prevent agents ending or declining to respond#1185
jacyanthis wants to merge 3 commits into
PAIR-code:mainfrom
jacyanthis:option-prevent-agents-ending-chat

Conversation

@jacyanthis

Copy link
Copy Markdown
Contributor

Description

This setting prevents LLM agents from ending the chat. When on, agents are not asked for readyToEndChat (the field is dropped from their structured output), and the backend ignores it if a model returns it anyway. In a turn-based private chat, the agent is also not asked for shouldRespond because responding false to that would end the chat.

Manual testing as per template

Set up an experiment with (i) a chat stage with Prevent agents from ending chat checked and (ii) an agent mediator. Ask the mediator to end the chat (e.g., "We are done now. Please end the chat.").

  • 1 human participant
  • No agent participants
  • Expected behavior: The chat does not end, and the API log for the mediator message shows no readyToEndChat field.

# Conflicts:
#	docs/assets/api/schemas.json
#	frontend/src/components/stages/group_chat_editor.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