ensureChildAgentRun

Create or recover the child run of a parent run tool call.

Arguments

  • inputEnsureChildAgentRunInput!required

  • input.parentRunIdID!required

    Run that delegates the work; the caller must hold its current execution credential.

  • input.toolCallIdString!required

    Tool call in the parent run that starts the child; the pair identifies the child run.

  • input.requestJSON!required

    Child agent and the input to start it with.

Responses

mutation EnsureChildAgentRun($input: EnsureChildAgentRunInput!) {  ensureChildAgentRun(input: $input) {    childConversationId    childRunId    childMessageId    agentId    duplicate  }}
{  "data": {    "ensureChildAgentRun": {      "childConversationId": "string",      "childRunId": "string",      "childMessageId": "string",      "agentId": "string",      "duplicate": false    }  }}

The EnsureChildAgentRunResult! in data.ensureChildAgentRun.