Skip to content

Require prompt for AI Agents

Darby Frey requested to merge require-prompt into master

What does this MR do and why?

Right now we say that the prompt is optional when creating an AI Agent, but the data model for AgentVersions has it required. We don't check the validation when creating an AI Agent record, so if no prompt is supplied, we end up in a state where the AgentVersion record does not get created, which causes several problems.

This MR changes the creation process to require a prompt when creating an AI Agent. This ensures the AgentVersion record is also created.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

Merge request reports