Task class
Creates a new agent task for the specified organization. The request must include a prompt (the user event message) that initiates the task. Set the 'permissionMode' field in the request body to restrict the agent to read-only operations. Returns the created task details including task ID, name, status, and timestamp.
Constructors
Properties
-
approvalMode
↔ Output<
String> -
Approval mode for this task. Valid values: 'manual', 'auto', 'balanced'.
latefinal
-
asyncTriggerType
↔ Output<
String?> -
The async trigger source for this task. Null for sync tasks.
latefinal
-
childResources
→ Set<
Resource> -
finalinherited
-
completionSources
↔ Map<
String, IOutputCompletionSource> -
latefinalinherited
-
contextCompactionThresholdPercent
↔ Output<
int?> -
Percentage of the context window (1-100) at which the agent triggers conversation compaction. Populated alongside contextWindowTokens when token usage data is available; omitted otherwise.
latefinal
-
contextUsedTokens
↔ Output<
int?> -
Total input tokens consumed across all model invocations for this task. Approximate context window usage.
latefinal
-
contextWindowTokens
↔ Output<
int?> -
Maximum context window size in tokens for the primary model used by this task.
latefinal
-
createdAt
↔ Output<
String> -
When the task was created, in ISO 8601 format.
latefinal
- createdBy ↔ Output
-
Information about the user who created this task.
latefinal
-
entities
↔ Output<
List< Map< >String, dynamic> > -
Pulumi entities (stacks, projects, etc.) that provide context for the agent.
latefinal
- hashCode → int
-
The hash code for this object.
no setterinherited
-
id
↔ Output<
String> -
getter/setter pairinherited
- isCustom → bool
-
Returns whether this resource is provider-managed.
no setterinherited
- isProtected → bool
-
Returns whether this resource is protected from deletion.
no setterinherited
- isRemote → bool
-
Whether this resource is registered as remote.
no setterinherited
- isResourceReference → bool
-
Whether this instance represents a resource value returned over RPC.
finalinherited
-
Whether this task is shared with other org members.
latefinal
-
lastHeartbeat
↔ Output<
String?> -
When the task runtime last reported a heartbeat. Null if the runtime has never checked in.
latefinal
-
name
↔ Output<
String> -
Display name for the task, typically auto-generated from the initial user message.
latefinal
-
permissionMode
↔ Output<
String?> -
The permission scope for the task.
latefinal
-
planMode
↔ Output<
bool> -
Whether the task is in plan mode. Set based on the first user message.
latefinal
-
resourceTransforms
→ List<
ResourceTransform> -
Inherited/explicit async transforms.
no setterinherited
-
runtimePhase
↔ Output<
String?> -
The current runtime phase for this task. Null until the runtime checks in.
latefinal
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
When the task was first shared. Null if never shared.
latefinal
-
source
↔ Output<
String?> -
The origin that triggered this task. Valid values: 'console', 'cli', 'slack', 'schedule', 'api', 'github'.
latefinal
-
sourceAutomationID
↔ Output<
String?> -
The automation that spawned this task, if the task was created by an automation run.
latefinal
-
status
↔ Output<
String> -
Current execution status of the task.
latefinal
-
taskType
↔ Output<
String> -
Whether the task was started synchronously by a user or asynchronously by background automation.
latefinal
-
tokensUsed
↔ Output<
int> -
Total 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.
latefinal
-
toolExecutionMode
↔ Output<
String?> -
Where tools are executed for this task. Valid values: 'cloud', 'cli'.
latefinal
-
transformations
→ List<
ResourceTransformation> -
Inherited/explicit legacy transformations.
no setterinherited
-
urn
↔ Output<
String> -
latefinalinherited
Methods
-
failId(
Object error) → void -
Completes this resource ID with an error when registration fails.
inherited
-
failOutputs(
Object error) → void -
Completes all output properties with
error.inherited -
failUrn(
Object error) → void -
Completes this resource URN with an error when registration fails.
inherited
-
getProvider(
String moduleMember) → ProviderResource? -
Returns provider for
moduleMember's package, if configured.inherited -
getResourceName(
) → String -
Returns this resource's logical name.
inherited
-
getResourceType(
) → String -
Returns this resource's Pulumi type token.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerOutput<
T> (String propertyName, {Object? decoder(Object?)?, bool isSecret = false}) → Output< T> -
Registers a dynamic output property for this resource.
inherited
-
resolveId(
String? value, {required bool isKnown}) → void -
Resolves the provider-assigned ID for this resource.
inherited
-
resolveOutputs(
Struct outputs) → void -
Resolves all output properties from a monitor response payload.
inherited
-
resolveUrn(
String value) → void -
Resolves this resource's URN once assigned by the engine.
inherited
-
serializeProperties(
Map< String, dynamic> properties) → Future<Struct> -
Serializes resource properties for RPC transmission.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited