ListAgentTasksResponse
Response containing a paginated list of agent tasks.
Properties
- Tasks contains the list of tasks for this page.
- ↳
idstring requiredUnique identifier for the task. - ↳
namestring requiredDisplay name for the task, typically auto-generated from the initial user message. - ↳
taskTypeenum requiredWhether the task was started synchronously by a user or asynchronously by background automation.Values:sync,async - ↳
asyncTriggerTypeenum optionalThe async trigger source for this task. Null for sync tasks.Values:scheduled— Scheduled- The task was started by a cron-driven scheduled signal.
external_signal— ExternalSignal- The task was started in reaction to an external signal payload.
- ↳
statusenum requiredCurrent execution status of the task.Values:running,idle - ↳
createdAtstring requiredWhen the task was created, in ISO 8601 format. - ↳
approvalModeenum requiredApproval mode for this task. Valid values: ‘manual’, ‘auto’, ‘balanced’.Values:manual,auto,balanced - Pulumi entities (stacks, projects, etc.) that provide context for the agent.
- ↳
planModeboolean requiredWhether the task is in plan mode. Set based on the first user message. - ↳
isSharedboolean requiredWhether this task is shared with other org members. - ↳
sharedAtstring optionalWhen the task was first shared. Null if never shared. - Information about the user who created this task.
- ↳
permissionModeenum optionalThe permission scope for the task.Values:default— Defaultread-only— ReadOnly
- ↳
rolestring optionalThe id of the RBAC role this task assumes. Null when the task runs with the creating user’s own permissions (no assumed role). - ↳
roleNamestring optionalThe display name of the RBAC role this task assumes. Null when the task has no assumed role or the role no longer exists. - ↳
runtimePhaseenum optionalThe current runtime phase for this task. Null until the runtime checks in.Values:booting,ready,running - ↳
lastHeartbeatstring optionalWhen the task runtime last reported a heartbeat. Null if the runtime has never checked in. - ↳
contextUsedTokensinteger optionalTotal input tokens consumed across all model invocations for this task. Approximate context window usage. - ↳
contextWindowTokensinteger optionalMaximum context window size in tokens for the primary model used by this task. - ↳
contextCompactionThresholdPercentinteger optionalPercentage of the context window (1-100) at which the agent triggers conversation compaction. Populated alongside contextWindowTokens when token usage data is available; omitted otherwise. - ↳
tokensUsedinteger requiredTotal Neo tokens consumed across all model invocations for this task. Neo tokens are the priced unit used for billing — distinct from the raw model input tokens surfaced in contextUsedTokens / contextWindowTokens. - ↳
toolExecutionModeenum optionalWhere tools are executed for this task. Valid values: ‘cloud’, ‘cli’.Values:cloud,cli,worker - ↳
sourceAutomationIDstring optionalThe automation that spawned this task, if the task was created by an automation run. - ↳
agentDefinitionIdstring optionalThe Custom Agent definition this task was run as, if any. Null for tasks run by a user directly rather than as a saved agent. - ↳
sourceenum optionalThe origin that triggered this task. Valid values: ‘console’, ‘cli’, ‘slack’, ‘schedule’, ‘api’, ‘github’, ‘code-review’.Values:api— Api- Task created via the REST API without a more specific origin.
console— Console- Task created from the Pulumi Cloud web console.
cli— Cli- Task created from the Pulumi CLI.
slack— Slack- Task created from the Slack integration.
schedule— Schedule- Task created by a scheduled automation.
github— Github- Task triggered from a GitHub integration.
code-review— CodeReview- Task created by the code review feature. The platform hosting the reviewed change is identified by the task’s vcsProvider field.
- ↳
vcsProviderenum optionalThe version control system this task operates against. Set for tasks that target a specific VCS platform (e.g. code reviews). Null for tasks with no VCS context.Values:github— GitHub- GitHub version control system
gitlab— GitLab- GitLab version control system
bitbucket— Bitbucket- Bitbucket version control system
azure_devops— AzureDevOps- Azure DevOps version control system
custom— Custom- Custom version control system
github_enterprise— GitHubEnterprise- GitHub Enterprise Server version control system
continuationTokenstring optionalContinuationToken can be used to fetch the next page of results. If null, there are no more results available.