Skip to main content

Documentation Index

Fetch the complete documentation index at: https://tbd-6fc993ce-hypeship-document-pool-profile-update-behavior.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

You can terminate an invocation that’s running. This is useful for stopping automations or agents stuck in an infinite loop.
Terminating an invocation also destroys any browsers associated with it.

Via API

You can stop an invocation by setting its status to failed. This will cancel the invocation and mark it as terminated.
import Kernel from '@onkernel/sdk';

const kernel = new Kernel();

const invocation = await kernel.invocations.update('invocation_id', {
  status: 'failed',
  output: JSON.stringify({ error: 'Invocation cancelled by user' }),
});

Via CLI

Use ctrl-c in the terminal tab where you launched the invocation.