Skip to content

Commit 2976879

Browse files
docs(coder_ai_task): add min coder version for prompt and enabled (#459)
* docs(coder_ai_task): add min coder version for `prompt` and `enabled` * indent callouts --------- Co-authored-by: Cian Johnston <[email protected]>
1 parent 5fe8d85 commit 2976879

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

docs/resources/ai_task.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,14 @@ Use this resource to define Coder tasks.
2222

2323
### Read-Only
2424

25-
- `enabled` (Boolean) True when executing in a Coder Task context, false when in a Coder Workspace context
25+
- `enabled` (Boolean) True when executing in a Coder Task context, false when in a Coder Workspace context.
26+
27+
-> The `enabled` field is only populated in Coder v2.28 and later.
2628
- `id` (String) A unique identifier for this resource.
2729
- `prompt` (String) The prompt text provided to the task by Coder.
2830

31+
-> The `prompt` field is only populated in Coder v2.28 and later.
32+
2933
<a id="nestedblock--sidebar_app"></a>
3034
### Nested Schema for `sidebar_app`
3135

provider/ai_task.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ func aiTaskResource() *schema.Resource {
9595
},
9696
"prompt": {
9797
Type: schema.TypeString,
98-
Description: "The prompt text provided to the task by Coder.",
98+
Description: "The prompt text provided to the task by Coder.\n\n -> The `prompt` field is only populated in Coder v2.28 and later.",
9999
Computed: true,
100100
},
101101
"app_id": {
@@ -109,7 +109,7 @@ func aiTaskResource() *schema.Resource {
109109
},
110110
"enabled": {
111111
Type: schema.TypeBool,
112-
Description: "True when executing in a Coder Task context, false when in a Coder Workspace context",
112+
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.",
113113
Computed: true,
114114
},
115115
},

0 commit comments

Comments
 (0)