# childAgentRunsByParentConversation

```graphql
query ChildAgentRunsByParentConversation($conversationId: ID!) {
  childAgentRunsByParentConversation(conversationId: $conversationId) {
    data {
      runId
      conversationId
      messageId
      projectId
      requestedByUserId
      triggerPrincipalType
      triggerPrincipalId
      agentId
      status
      implementationKind
      workerKey
      sourceTargetKind
      sourceTargetEnvironmentId
      sourceTargetBranchId
      sourceTargetReleaseVersion
      runtimeTargetKind
      runtimeTargetEnvironmentId
      runtimeTargetBranchId
      parentConversationId
      parentRunId
      spawnedFromMessageId
      spawnedFromToolCallId
      inputAnchorMessageId
      handoffMessageId
      resolvedDeploymentId
      latestEventId
      latestExternalEventSequence
      waitingToolCallId
      waitingToolName
      terminalErrorCode
      terminalErrorMessage
      createdAt
      startedAt
      finishedAt
      runSnapshot
    }
    pageInfo {
      hasNextPage
      hasPreviousPage
      startCursor
      endCursor
    }
  }
}
```

List child agent runs.

## Arguments

| Name                    | Type   | Required | Description |
| ----------------------- | ------ | -------- | ----------- |
| `conversationId`        | ID!    | Yes      |             |
| `spawnedFromToolCallId` | String |          |             |
| `limit`                 | Int    |          |             |
| `cursor`                | String |          |             |

## Variables

```json
{
  "conversationId": "string"
}
```

## Responses

| Status | Description                                                         |
| ------ | ------------------------------------------------------------------- |
| 200    | The AgentRunConnection! in data.childAgentRunsByParentConversation. |

## Call it

```bash
curl -X POST "https://api.veryfront.com/graphql" \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "query": "query ChildAgentRunsByParentConversation($conversationId: ID!) {\n  childAgentRunsByParentConversation(conversationId: $conversationId) {\n    data {\n      runId\n      conversationId\n      messageId\n      projectId\n      requestedByUserId\n      triggerPrincipalType\n      triggerPrincipalId\n      agentId\n      status\n      implementationKind\n      workerKey\n      sourceTargetKind\n      sourceTargetEnvironmentId\n      sourceTargetBranchId\n      sourceTargetReleaseVersion\n      runtimeTargetKind\n      runtimeTargetEnvironmentId\n      runtimeTargetBranchId\n      parentConversationId\n      parentRunId\n      spawnedFromMessageId\n      spawnedFromToolCallId\n      inputAnchorMessageId\n      handoffMessageId\n      resolvedDeploymentId\n      latestEventId\n      latestExternalEventSequence\n      waitingToolCallId\n      waitingToolName\n      terminalErrorCode\n      terminalErrorMessage\n      createdAt\n      startedAt\n      finishedAt\n      runSnapshot\n    }\n    pageInfo {\n      hasNextPage\n      hasPreviousPage\n      startCursor\n      endCursor\n    }\n  }\n}",
  "variables": {
    "conversationId": "string"
  }
}'
```

## Example response

```json
{
  "data": {
    "childAgentRunsByParentConversation": {
      "data": [
        {
          "runId": "string",
          "conversationId": "string",
          "messageId": "string",
          "projectId": "string",
          "requestedByUserId": "string",
          "triggerPrincipalType": "string",
          "triggerPrincipalId": "string",
          "agentId": "string",
          "status": "string",
          "implementationKind": "string",
          "workerKey": "string",
          "sourceTargetKind": "string",
          "sourceTargetEnvironmentId": "string",
          "sourceTargetBranchId": "string",
          "sourceTargetReleaseVersion": "string",
          "runtimeTargetKind": "string",
          "runtimeTargetEnvironmentId": "string",
          "runtimeTargetBranchId": "string",
          "parentConversationId": "string",
          "parentRunId": "string",
          "spawnedFromMessageId": "string",
          "spawnedFromToolCallId": "string",
          "inputAnchorMessageId": "string",
          "handoffMessageId": "string",
          "resolvedDeploymentId": "string",
          "latestEventId": 0,
          "latestExternalEventSequence": 0,
          "waitingToolCallId": "string",
          "waitingToolName": "string",
          "terminalErrorCode": "string",
          "terminalErrorMessage": "string",
          "createdAt": "string",
          "startedAt": "string",
          "finishedAt": "string",
          "runSnapshot": {}
        }
      ],
      "pageInfo": {
        "hasNextPage": false,
        "hasPreviousPage": false,
        "startCursor": "string",
        "endCursor": "string"
      }
    }
  }
}
```
