TaskArgs class

The set of arguments for Task. The set of arguments for Task.

Constructors

TaskArgs({Input<String>? approvalMode, Input<List>? cliIntegrations, Input<List>? enabledIntegrations, Input? message, required Input<String> orgName, Input<String>? permissionMode, Input<bool>? planMode, Input<String>? source, Input<String>? taskID, Input<String>? toolExecutionMode})
Creates a new TaskArgs. approvalMode Optional approval mode override for this task. If omitted, org default is used. cliIntegrations Optional filter for CLI integrations to enable for this task. Semantics: omitted/null → enable all CLI integrations connected for the org; empty list → explicit opt-out (no CLI integrations for this task); populated list → whitelist by (catalogId, name) of the configured instances to enable. Entries with missing or unknown catalogId, missing name, or referencing a (catalogId, name) pair that is not connected for the organization are rejected with a 400 response. catalogId matching is case-insensitive. enabledIntegrations Optional list of integrations to enable for this task. Semantics: omitted/null → inherit all org-enabled integrations; empty list → explicit opt-out (no integration credentials for this task); populated list → whitelist of specific integrations by ID. Modeled as an object array rather than a bare string array so multi-instance support (instance_name, scope, etc.) can be added later without a wire break. message The message content orgName The organization name permissionMode Controls the permission scope for the task. When omitted, defaults to 'default' (the agent uses the creating user's full permissions). planMode Whether to enable plan mode for this task. source The origin that triggered this task. Defaults to 'api' if omitted. taskID The agent task identifier toolExecutionMode Where tools should be executed. Defaults to 'cloud' if omitted.
const
TaskArgs.fromMap(Map<String, dynamic> map)
factory

Properties

approvalMode → Input<String>?
Optional approval mode override for this task. If omitted, org default is used.
final
cliIntegrations → Input<List>?
Optional filter for CLI integrations to enable for this task. Semantics: omitted/null → enable all CLI integrations connected for the org; empty list → explicit opt-out (no CLI integrations for this task); populated list → whitelist by (catalogId, name) of the configured instances to enable. Entries with missing or unknown catalogId, missing name, or referencing a (catalogId, name) pair that is not connected for the organization are rejected with a 400 response. catalogId matching is case-insensitive.
final
enabledIntegrations → Input<List>?
Optional list of integrations to enable for this task. Semantics: omitted/null → inherit all org-enabled integrations; empty list → explicit opt-out (no integration credentials for this task); populated list → whitelist of specific integrations by ID. Modeled as an object array rather than a bare string array so multi-instance support (instance_name, scope, etc.) can be added later without a wire break.
final
hashCode → int
The hash code for this object.
no setterinherited
message → Input?
The message content
final
orgName → Input<String>
The organization name
final
permissionMode → Input<String>?
Controls the permission scope for the task. When omitted, defaults to 'default' (the agent uses the creating user's full permissions).
final
planMode → Input<bool>?
Whether to enable plan mode for this task.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
source → Input<String>?
The origin that triggered this task. Defaults to 'api' if omitted.
final
taskID → Input<String>?
The agent task identifier
final
toolExecutionMode → Input<String>?
Where tools should be executed. Defaults to 'cloud' if omitted.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited