Перейти к содержимому

Decide several clips

Это содержимое пока не доступно на вашем языке.

scope clips:reviewwriteslive key only

Decides up to 25 clips in one call, each judged on its own: the answer lists every clip with what happened, and a clip that is refused does not stop the others.

Everything the agent is told about this tool

Decides up to 25 clips in one call, each judged on its own: the answer lists every clip with what happened, and a clip that is refused does not stop the others. An approval here is held to the rule of the workspace’s approve-the-clean-ones sweep: only a new clip with no failed check and not marked watch; any other is refused as needs_a_reader — read it with clip_detail and use clip_decide. Rejections follow the same rules as clip_decide. One idempotencyKey covers the whole batch; send the same one to retry safely. dryRun: true shows every result and decides nothing.

Name Type Required Description
decisions object[] yes Up to 25 decisions. Each is judged on its own; one that is refused does not stop the others. A clip may appear once.
idempotencyKey string no Any unique string for this attempt, for example a UUID. Sending the same key and body again returns the first answer instead of writing twice.
dryRun boolean no When true, runs every check and returns what would happen, and keeps nothing: no draft, no log entry, no event.

A write: send an idempotencyKey (any unique string for this one intent). A call with dryRun: true needs none.

curl https://countviews.com/api/public/v1/call \
-H "Authorization: Bearer $COUNTVIEWS_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"clips_decide_batch","arguments":{"decisions":[{"clipId":"0199aaaa-bbbb-7ccc-8ddd-eeeeffff0001","decision":"approve"}],"idempotencyKey":"batch-1"}}'