Skip to content

fix: api accepts experiments with agent mediators that it exports - #1199

Open
jacyanthis wants to merge 1 commit into
PAIR-code:mainfrom
jacyanthis:fix-api-accepts-persona-fields
Open

fix: api accepts experiments with agent mediators that it exports#1199
jacyanthis wants to merge 1 commit into
PAIR-code:mainfrom
jacyanthis:fix-api-accepts-persona-fields

Conversation

@jacyanthis

Copy link
Copy Markdown
Contributor

Description

The experiment template API (POST/PUT /experiments) validates agent personas against AgentConfigData, but three required fields are missing, so attempts to upload a valid exported experiment with agent personas are being rejected as 400 Invalid request body.

This fix adds those three fields to AgentConfigData as optional (mirroring how it already treats defaultModelSettings / defaultProfile) so uploads are no longer rejected.

Manual testing

You can try uploading an experiment with an agent mediator persona before and after the fix.

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