Stop a running agent for a specific instance.
Requires API key authentication.
import { Skylight } from "skylight-sdk"; const skylight = new Skylight({ apikey: process.env["SKYLIGHT_APIKEY"] ?? "", }); async function run() { const result = await skylight.agent.stop("<id>"); // Handle the result console.log(result); } run();
{ "message": "<string>", "status": "<string>" }
API key authentication
Status of the operation
"success"
Human-readable status message