AgentTask
A Pulumi Copilot agent task representing a conversation and its associated context.
Properties
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,asyncasyncTriggerTypeenum 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,idlecreatedAtstring 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.
- ↳
typestring required 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.
- ↳
namestring requiredThe user’s display name. - ↳
githubLoginstring requiredThe user’s login name. - ↳
avatarUrlstring requiredThe URL of the user’s avatar image. - ↳
emailstring optionalThe user’s email address. It is only populated on selected endpoints and is omitted from most responses. Treat it as sensitive information. 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,runninglastHeartbeatstring 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,workersourceAutomationIDstring 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