Skip to navigation

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

ParameterTypeRequiredDescription
namestringYesThe objective’s name. Up to 256 characters. It must not match a name already in use, ignoring case.
pass_descriptionstringYesWhat a conversation that passes shows.
fail_descriptionstringYesWhat a conversation that fails shows.
scoring_guidancestringYesHow the judge decides between pass and fail.
null_descriptionstringNoWhen the objective doesn’t apply to a conversation.
directionstringNohigher_is_better when a pass is the good outcome, or higher_is_worse when a pass is the bad outcome. Defaults to higher_is_better.
intent_idsarray of stringsNoThe Intents the objective grades. Empty grades all conversations.
changeset_idstringNoA testing change set with no objective, or with a draft objective. Omit it to create a new change set for the objective.

Text fields hold up to 4,096 characters.

Response

FieldDescription
objective_idThe new objective.
changeset_idThe change set the objective measures. The assistant stages the fix on this change set.
stateactive, or draft when the authoring review didn’t pass.
review_problemsReturned for a draft objective. The problems that keep it from being scored. An empty list means the review couldn’t run. Don’t test the change set with that objective.

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_id to 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.