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.
approvalModeOptional approval mode override for this task. If omitted, org default is used.cliIntegrationsOptional 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.enabledIntegrationsOptional 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.messageThe message contentorgNameThe organization namepermissionModeControls the permission scope for the task. When omitted, defaults to 'default' (the agent uses the creating user's full permissions).planModeWhether to enable plan mode for this task.sourceThe origin that triggered this task. Defaults to 'api' if omitted.taskIDThe agent task identifiertoolExecutionModeWhere 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