POST
/v1/chats/{chatId}/stopbetauserworkspace
When to use
Stop an active generation.
For agents
Cancellation does not reverse an action already submitted for execution.
Example
import { PermuteAppClient } from '@permute/sdk/app';
const client = new PermuteAppClient();
const result = await client.chats.stop('chat_abcdefghijklmnopqrstuvwx');Response
{
"data": {
"id": "chat_abcdefghijklmnopqrstuvwx",
"status": "cancelled",
"error": null,
"conversation": [],
"traceSteps": []
}
}