conversationMessageBranches

List the child messages of a message, oldest first, which are the alternative continuations that start at it; to show the alternatives to an edited message, list the children of the parent of that message.

Arguments

  • conversationIdID!required

  • messageIdID!required

    Parent message; it must belong to the conversation.

Responses

query ConversationMessageBranches($conversationId: ID!, $messageId: ID!) {  conversationMessageBranches(conversationId: $conversationId, messageId: $messageId) {    data {      id      conversationId      parentId      seq      role      createdBy      senderType      senderId      senderDisplayName      parts      model      tokenUsage      finishReason      costCredits      status      editedAt      idempotencyKey      metadata      createdAt      updatedAt    }    pageInfo {      hasNextPage      hasPreviousPage      startCursor      endCursor    }  }}
{  "data": {    "conversationMessageBranches": {      "data": [        {          "id": "string",          "conversationId": "string",          "parentId": "string",          "seq": 0,          "role": "string",          "createdBy": "string",          "senderType": "string",          "senderId": "string",          "senderDisplayName": "string",          "parts": {},          "model": "string",          "tokenUsage": {},          "finishReason": "string",          "costCredits": "string",          "status": "string",          "editedAt": "string",          "idempotencyKey": "string",          "metadata": {},          "createdAt": "string",          "updatedAt": "string"        }      ],      "pageInfo": {        "hasNextPage": false,        "hasPreviousPage": false,        "startCursor": "string",        "endCursor": "string"      }    }  }}

The MessageConnection! in data.conversationMessageBranches.