Skip to content

Commit 51684f4

Browse files
committed
add version note
1 parent 37908cf commit 51684f4

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

docs/data-sources/ai_task_prompt.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ Use this data source to read information about Coder tasks.
1717

1818
### Read-Only
1919

20-
- `enabled` (Boolean) True when executing in a Coder Task context, false when in a Coder Workspace context
20+
- `enabled` (Boolean) True when executing in a Coder Task context, false when in a Coder Workspace context.
21+
22+
->This field is only populated in Coder v2.28 and later.
2123
- `id` (String) The UUID of the task, if executing in a Coder Task context. Empty in a Coder Workspace context.
2224
- `value` (String) The prompt text provided to the task by Coder, if executing in a Coder Task context. Empty in a Coder Workspace context.
25+
26+
->This field is only populated in Coder v2.28 and later.

provider/ai_task.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,12 +146,12 @@ func aiTaskPromptDatasource() *schema.Resource {
146146
"value": {
147147
Type: schema.TypeString,
148148
Computed: true,
149-
Description: "The prompt text provided to the task by Coder, if executing in a Coder Task context. Empty in a Coder Workspace context.",
149+
Description: "The prompt text provided to the task by Coder, if executing in a Coder Task context. Empty in a Coder Workspace context.\n\n->This field is only populated in Coder v2.28 and later.",
150150
},
151151
"enabled": {
152152
Type: schema.TypeBool,
153153
Computed: true,
154-
Description: "True when executing in a Coder Task context, false when in a Coder Workspace context",
154+
Description: "True when executing in a Coder Task context, false when in a Coder Workspace context.\n\n->This field is only populated in Coder v2.28 and later.",
155155
},
156156
},
157157
}

0 commit comments

Comments
 (0)