create_changeset_objective
create_changeset_objective
Creates the objective you confirmed and pins it to a change set. The objective measures that change set only, and it is deleted when its change set ends. See Change sets.
The assistant calls this tool only after you confirm a draft from draft_changeset_objective. It is part of the improvement loop.
The tool needs a person to own the change set. Connect with an Ada dashboard login, or with an API key created in the dashboard. A service token can’t create an objective. With OAuth, this tool needs the Owner or Admin role. See Permissions.
Example prompts
- “Yes, create the second draft.”
- “Create the objective, but name it Gives the refund date.”
Parameters
Text fields hold up to 4,096 characters.
Response
A draft objective isn’t scored. The assistant shows you its problems, fixes the fields with you, and calls the tool again with the same changeset_id. The new objective replaces the draft, unless a test case or the change set’s target metrics list the draft. Don’t test the change set until the objective is active.
Errors
- The change set already has an objective that can’t be replaced. Omit
changeset_idto create a new change set. - The change set isn’t a testing change set of this AI Agent. Pass another ID, or omit it.
- The AI Agent has the most active change sets. Delete a change set you no longer test, or pass the ID of a testing change set with no objective.
- The name is in use. Choose another name.
- The draft is in use. A test case or the change set’s target metrics list the draft objective. Remove it from there first.
- The objective limit is reached. An AI Agent can have a limited number of active objectives across its change sets. Delete a change set you no longer test.