List child agent runs

childAgentRunsConnection(conversationId: ID!, parentRunId: ID!, spawnedFromToolCallId: String, limit: Int, cursor: String): AgentRunConnection!

Arguments

ArgumentTypeRequiredDescription
conversationIdID!Yes
parentRunIdID!Yes
spawnedFromToolCallIdStringNo
limitIntNo
cursorStringNoThe previous page's pageInfo.endCursor.

Response

Returns AgentRunConnection!. Open the type for its fields and nested types.

FieldType
data[AgentRun!]!
pageInfoPageInfo!

Types marked with ! cannot be null. Lists use [Type] notation. The type index lists all published input and response types.

Example

graphql
query ChildAgentRunsConnection($conversationId: ID!, $parentRunId: ID!, $spawnedFromToolCallId: String, $limit: Int, $cursor: String) {
  childAgentRunsConnection(conversationId: $conversationId, parentRunId: $parentRunId, spawnedFromToolCallId: $spawnedFromToolCallId, limit: $limit, cursor: $cursor) {
    data {
      projectId
      runId
      agentId
      status
      createdAt
    }
    pageInfo {
      hasNextPage
      endCursor
      hasPreviousPage
      startCursor
    }
  }
}
json
{
  "conversationId": "00000000-0000-4000-8000-000000000001",
  "parentRunId": "00000000-0000-4000-8000-000000000001"
}