TaskArgs constructor
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.
Implementation
const TaskArgs({
this.approvalMode,
this.cliIntegrations,
this.enabledIntegrations,
this.message,
required this.orgName,
this.permissionMode,
this.planMode,
this.source,
this.taskID,
this.toolExecutionMode,
});