OSS-first docs
These docs teach the open system first: contracts, generated surfaces, runtimes, governance, and incremental adoption. Studio shows up as the operating layer on top, not as the source of truth.
Cancel an in-flight agent run.
Goal
Provide safe operator control to stop background agents.
Context
Used when an agent run must be halted or escalated.
Source Definition
import { ScalarTypeEnum, SchemaModel } from '@lssm-tech/lib.schema';
import { docId } from '../../docs/registry';
import type { DocBlock } from '../../docs/types';
import { defineCommand } from '../../operations';
import {
AGENT_DOMAIN,
AGENT_OWNERS,
AGENT_STABILITY,
AGENT_TAGS,
} from '../constants';
export const AgentCancelCommand = defineCommand({
meta: {
key: 'agent.cancel',
title: 'Cancel Agent Run',
version: '1.0.0',
description: 'Cancel an in-flight agent run.',
goal: 'Provide safe operator control to stop background agents.',
context: 'Used when an agent run must be halted or escalated.',
domain: AGENT_DOMAIN,
owners: AGENT_OWNERS,
tags: [...AGENT_TAGS, 'run', 'cancel'],
stability: AGENT_STABILITY,
docId: [docId('docs.tech.agent.cancel')],
},
capability: {
key: 'agent.execution',
version: '1.0.0',
},
io: {
input: AgentCancelInput,
output: AgentCancelOutput,
},
policy: {
auth: 'admin',
pii: [],
},
});