From 6b34a50025d36a5d9e076cd052a416271018e7c6 Mon Sep 17 00:00:00 2001 From: Mason Williams Date: Fri, 5 Sep 2025 13:48:50 -0400 Subject: [PATCH 1/2] docs(stop): Update stopping instructions and API note --- apps/stop.mdx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/apps/stop.mdx b/apps/stop.mdx index 4164b3c..8c841e6 100644 --- a/apps/stop.mdx +++ b/apps/stop.mdx @@ -2,18 +2,14 @@ title: "Stopping" --- -import StopInvocation from '/snippets/openapi/patch-invocations-id.mdx'; - -You can terminate an invocation that's running. You can use this to stop automations or agents stuck in an infinite loop. +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 also do this via the API: - - +Stopping an invocation via the API is not available yet, but it's coming very soon. ## Via CLI Use `ctrl-c` in the terminal tab where you launched the invocation. From db9024b023d4340bddffc80ebedb9d357fcb1d96 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 5 Sep 2025 17:49:03 +0000 Subject: [PATCH 2/2] docs: update code samples from OpenAPI --- snippets/openapi/get-deployments.mdx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/snippets/openapi/get-deployments.mdx b/snippets/openapi/get-deployments.mdx index 7cfb64f..bb66cea 100644 --- a/snippets/openapi/get-deployments.mdx +++ b/snippets/openapi/get-deployments.mdx @@ -6,9 +6,10 @@ const client = new Kernel({ apiKey: 'My API Key', }); -const deployments = await client.deployments.list(); - -console.log(deployments); +// Automatically fetches more pages as needed. +for await (const deploymentListResponse of client.deployments.list()) { + console.log(deploymentListResponse.id); +} ``` @@ -18,7 +19,8 @@ from kernel import Kernel client = Kernel( api_key="My API Key", ) -deployments = client.deployments.list() -print(deployments) +page = client.deployments.list() +page = page.items[0] +print(page.id) ```