Define the operation
An operation is a named, observable unit of work — `summarize_ticket`, `extract_invoice`, `classify_intent`. You can route traffic, build datasets, and gate releases per operation, never on the model as a whole.
await client.operations.create({
key: "summarize_ticket",
name: "Support ticket summary",
ship_gates: [{ evaluator_id: "ev_regex_pii", min_score: 1.0 }],
});