# childAgentRuns

```graphql
query ChildAgentRuns($conversationId: ID!, $parentRunId: ID!) {
  childAgentRuns(conversationId: $conversationId, parentRunId: $parentRunId) {
    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
  }
}
```

List child agent runs.

## Arguments

| Name                    | Type   | Required | Description                                                           |
| ----------------------- | ------ | -------- | --------------------------------------------------------------------- |
| `conversationId`        | ID!    | Yes      |                                                                       |
| `parentRunId`           | ID!    | Yes      | Parent run. This list is unpaged; page with childAgentRunsConnection. |
| `spawnedFromToolCallId` | String |          |                                                                       |

## Variables

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

## Responses

| Status | Description                               |
| ------ | ----------------------------------------- |
| 200    | The \[AgentRun!]! in data.childAgentRuns. |

## 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 ChildAgentRuns($conversationId: ID!, $parentRunId: ID!) {\n  childAgentRuns(conversationId: $conversationId, parentRunId: $parentRunId) {\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}",
  "variables": {
    "conversationId": "string",
    "parentRunId": "string"
  }
}'
```

## Example response

```json
{
  "data": {
    "childAgentRuns": [
      {
        "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": {}
      }
    ]
  }
}
```
