Skip to navigation

draft_changeset_objective

Drafts up to 3 objectives for a change set from a description of what good looks like. An objective says what one change set is meant to improve. It passes a conversation where the AI Agent behaves well, and fails one where it doesn’t. See Change sets.

The tool saves nothing. The assistant shows you each draft, and creates the one you confirm with create_changeset_objective. It is part of the improvement loop.

Example prompts

  • “The Agent should give the date the refund arrives. Draft an objective for that.”
  • “Write an objective for this fix: the Agent asks for the order number once.”

Parameters

ParameterTypeRequiredDescription
descriptionstringYesWhat good looks like, written from the failing conversations you confirmed. One behavior per objective. Up to 4,096 characters.

Response

FieldDescription
draftsUp to 3 drafts. Each has name, pass_description, fail_description, null_description, scoring_guidance, direction, intent_ids, and rationale.
behaviour_countThe number of behaviors found in the description.
split_reasonWhy the description was split into more than one objective, or null.
clarifying_questionA question for you when the description isn’t clear enough to draft. The assistant asks it and calls the tool again with your answer.
not_draftedEach behavior that got no draft, with its behaviour, reason, and problems. The reason review_unavailable means a retry can succeed.

Limits

  • An AI Agent can draft 10 times a minute, together with custom metric drafts. When the limit is reached, the tool asks the assistant to wait a minute and try again.
  • If drafting is unavailable, the assistant can write the objective directly with create_changeset_objective.