---
title: "AgentSessionList"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.gitpando.com/llms.txt
> Use this file to discover all available pages before exploring further.

Path: Pando API

## Fields

- `AgentSessionList.sessions` (array<object>, required)
  - `AgentSessionList.sessions.number` (integer, required)
  - `AgentSessionList.sessions.kind` (string, required)
    - one of `"task"`, `"issue"`, `"review"`, `"chat"`
  - `AgentSessionList.sessions.status` (string, required)
    - one of `"working"`, `"waiting"`, `"failed"`, `"stopped"`
  - `AgentSessionList.sessions.reason` (string | null, required)
  - `AgentSessionList.sessions.repo` (string, required)
  - `AgentSessionList.sessions.branch` (string | null, required) — Named by a person or from its issue; null for an assistant's chat until the person names one.
  - `AgentSessionList.sessions.program` (string, required) — pi
  - `AgentSessionList.sessions.model` (string, required)
  - `AgentSessionList.sessions.issue` (integer | null, required)
  - `AgentSessionList.sessions.launched_by` (string, required)
  - `AgentSessionList.sessions.machine` (string, required) — The session's credential, cloud-<n>.
  - `AgentSessionList.sessions.workspace` (string | null, required)
    - one of `"mount"`, `"clone"`, `null`
  - `AgentSessionList.sessions.awaiting_checks` (boolean, required) — Its merge waits for required checks still running; Pando tells it when they are green.
  - `AgentSessionList.sessions.first_message` (string | null, required) — An assistant's chat: its first message, cut at 200 characters; null for other kinds.
  - `AgentSessionList.sessions.created_at` (string, required)
    - format `date-time`
  - `AgentSessionList.sessions.updated_at` (string, required)
    - format `date-time`
  - `AgentSessionList.sessions.branch_facts` (object | null, optional) — In a list only. Its branch now (state, ahead, merged_at, checks); null while the branch is not made yet.
- `AgentSessionList.next_before` (integer | null, required)
- `AgentSessionList.counts` (object, required) — For the same filters, in every state.
  - `AgentSessionList.counts.all` (integer, required)
  - `AgentSessionList.counts.working` (integer, required)
  - `AgentSessionList.counts.waiting` (integer, required)


Source: https://docs.gitpando.com/api/schemas/AgentSessionList/index.md
