Skip to content

AgentSession

packages/contract/src/agent.ts is the exact shape.

Fields

  • numberintegerrequired
  • kindtaskorissueorrevieworchatrequired
  • statusworkingorwaitingorfailedorstoppedrequired
  • reasonstring | nullrequired
  • repostringrequired
  • branchstring | nullrequired

    Named by a person or from its issue; null for an assistant's chat until the person names one.

  • programstringrequired

    pi

  • modelstringrequired
  • issueinteger | nullrequired
  • launched_bystringrequired
  • machinestringrequired

    The session's credential, cloud-.

  • workspacemountorcloneornullrequired
  • awaiting_checksbooleanrequired

    Its merge waits for required checks still running; Pando tells it when they are green.

  • first_messagestring | nullrequired

    An assistant's chat: its first message, cut at 200 characters; null for other kinds.

  • created_atstringrequired
    format: date-time
  • updated_atstringrequired
    format: date-time
  • branch_factsoptionalobject | null

    In a list only. Its branch now (state, ahead, merged_at, checks); null while the branch is not made yet.

Navigation

Type to search…

↑↓ navigate↵ selectEsc close