Automatically adds projects as consumers to agents after creation
What does this MR do and why?
Allows agents to be auto-added to projects
Add the add_to_project_when_created parameter that when true adds the agent to the project in which is being created as a consumer.
Changelog: added
How to set up and validate locally
You need Gitlab Duo/Test
in your gdk
Execute the following graphql request:
mutation {
aiCatalogAgentCreate(input: {
description: "asdfasdf",
name: "test 2",
projectId: "gid://gitlab/Project/1000000",
public: true,
systemPrompt: "asdfasdfasdf"
addToProjectWhenCreated: true
}) {
errors
item {
id
createdAt
name
}
}
}
Navigate to http://gdk.test:3000/gitlab-duo/test/-/automate/agents
Test2 should have been added:
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Related to #572174