Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion docs/resources/ai_task.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

<a id="nestedblock--sidebar_app"></a>
### Nested Schema for `sidebar_app`

Expand Down
4 changes: 2 additions & 2 deletions provider/ai_task.go
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand All @@ -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,
},
},
Expand Down