diff --git a/docs/resources/ai_task.md b/docs/resources/ai_task.md index 80c3f41..3619c68 100644 --- a/docs/resources/ai_task.md +++ b/docs/resources/ai_task.md @@ -22,10 +22,14 @@ Use this resource to define Coder tasks. ### Read-Only -- `enabled` (Boolean) True when executing in a Coder Task context, false when in a Coder Workspace context +- `enabled` (Boolean) True when executing in a Coder Task context, false when in a Coder Workspace context. + + -> The `enabled` field is only populated in Coder v2.28 and later. - `id` (String) A unique identifier for this resource. - `prompt` (String) The prompt text provided to the task by Coder. + -> The `prompt` field is only populated in Coder v2.28 and later. + ### Nested Schema for `sidebar_app` diff --git a/provider/ai_task.go b/provider/ai_task.go index 01baf9e..adadc77 100644 --- a/provider/ai_task.go +++ b/provider/ai_task.go @@ -95,7 +95,7 @@ func aiTaskResource() *schema.Resource { }, "prompt": { Type: schema.TypeString, - Description: "The prompt text provided to the task by Coder.", + Description: "The prompt text provided to the task by Coder.\n\n -> The `prompt` field is only populated in Coder v2.28 and later.", Computed: true, }, "app_id": { @@ -109,7 +109,7 @@ func aiTaskResource() *schema.Resource { }, "enabled": { Type: schema.TypeBool, - Description: "True when executing in a Coder Task context, false when in a Coder Workspace context", + Description: "True when executing in a Coder Task context, false when in a Coder Workspace context.\n\n -> The `enabled` field is only populated in Coder v2.28 and later.", Computed: true, }, },