AI Agent

Continue Conversation

POSThttps://openapi.longbridge.com/v1/ai/agents/{agent_id}/conversations/{chat_uid}/messages/{message_id}/continue

Authorization

Signed mode: every request is signed with your App Key/Secret. Header set:

NameTypeRequiredDescription
Authorizationstring · headerRequiredThe account Access Token from the OpenAPI dashboard — passed as the raw token (no Bearer prefix) and included in the signature calculation.
X-Api-Keystring · headerRequiredYour App Key.
X-Timestampstring · headerRequiredRequest timestamp in seconds (Unix epoch).
X-Api-Signaturestring · headerRequiredHMAC-SHA256 signature. Format: HMAC-SHA256 SignedHeaders=authorization;x-api-key;x-timestamp, Signature=.

When Start Conversation returns status = interrupted, the Agent is waiting for more information from you. Send your answers via this endpoint and the paused run resumes from the interrupt point, until it succeeds, gets interrupted again, or fails.

A single round of conversation may be interrupted multiple times: if the run returns interrupted again after continuing, call this endpoint again with the new interrupt.

As with Start Conversation, choose blocking / SSE streaming response mode with the Accept header.

Request

Path parameters

NameTypeRequiredDescription
agent_idstringRequiredAgent UID.
chat_uidstringRequiredConversation UID of the interrupted run.
message_idstringRequiredID of the interrupted message to continue.

Request body

NameTypeRequiredDescription
answers_by_tool_callobjectRequiredAnswers keyed by tool-call ID, providing the information the Agent asked for so the interrupted run can resume.

Response

Response properties

NameTypeRequiredDescription
chat_uidstringRequiredConversation UID.
message_idstringRequiredMessage ID.
statusstringRequiredRun status, e.g. `succeeded`, `interrupted`.
answerstringOptionalThe Agent's answer text.
referencesarrayOptionalReference sources cited in the answer.
elapsed_timenumberOptionalElapsed run time in seconds.

Response JSON example

{
  "code": 0,
  "message": "success",
  "data": {
    "chat_uid": "ct_9f2c1a5b",
    "message_id": "43",
    "status": "succeeded",
    "answer": "Over the past month, Tesla (TSLA.US)...",
    "references": [],
    "elapsed_time": 2.74
  }
}

Error code

See the Error Codes page for the full list of error codes.