Interrupt

Updated at:

Calls the Interrupt operation to interrupt an ongoing OSS Agent conversation. After the call, the Agent stops the operation that is being performed.

Usage notes

  • This operation is effective only for ongoing conversations. If the conversation has already ended, calling this operation has no effect.

Request syntax

POST /api/chat/interrupt/{sessionId} HTTP/1.1

Path parameters

Parameter

Type

Required

Description

sessionId

string

Yes

The ID of the session to interrupt.

Response parameters

Parameter

Type

Description

success

boolean

Indicates whether the request was successful.

interrupted

boolean

Indicates whether the conversation was successfully interrupted.

Examples

Sample request:

POST /api/chat/interrupt/550e8400-e29b-41d4-a716-446655440000 HTTP/1.1

Sample response:

{
  "success": true,
  "interrupted": true
}