Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions apps/stop.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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.

<Info>
Terminating an invocation also destroys any browsers associated with it.
</Info>

## Via API
You can also do this via the API:

<StopInvocation />
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.
12 changes: 7 additions & 5 deletions snippets/openapi/get-deployments.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
```


Expand All @@ -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)
```
</CodeGroup>