Skip to content

Commit d418ad9

Browse files
committed
chore: address TODOs
Signed-off-by: Danny Kopping <dannykopping@gmail.com>
1 parent d9b0f89 commit d418ad9

File tree

2 files changed

+33
-2
lines changed

2 files changed

+33
-2
lines changed

docs/resources/ai_task.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "coder_ai_task Resource - terraform-provider-coder"
4+
subcategory: ""
5+
description: |-
6+
Use this resource to define Coder tasks.
7+
---
8+
9+
# coder_ai_task (Resource)
10+
11+
Use this resource to define Coder tasks.
12+
13+
14+
15+
<!-- schema generated by tfplugindocs -->
16+
## Schema
17+
18+
### Required
19+
20+
- `sidebar_app` (Block Set, Min: 1, Max: 1) The coder_app to display in the sidebar. Usually a chat interface with the AI agent running in the workspace, like https://github.com/coder/agentapi. (see [below for nested schema](#nestedblock--sidebar_app))
21+
22+
### Read-Only
23+
24+
- `id` (String) A unique identifier for this resource.
25+
26+
<a id="nestedblock--sidebar_app"></a>
27+
### Nested Schema for `sidebar_app`
28+
29+
Required:
30+
31+
- `id` (String) A reference to an existing `coder_app` resource in your template.

provider/ai_task.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ func aiTask() *schema.Resource {
2525
return &schema.Resource{
2626
SchemaVersion: 1,
2727

28-
Description: "Use this resource to define Coder tasks.", // TODO: docs link.
28+
Description: "Use this resource to define Coder tasks.",
2929
CreateContext: func(c context.Context, resourceData *schema.ResourceData, i any) diag.Diagnostics {
3030
resourceData.SetId(uuid.NewString())
3131
return nil
@@ -40,7 +40,7 @@ func aiTask() *schema.Resource {
4040
},
4141
"sidebar_app": {
4242
Type: schema.TypeSet,
43-
Description: "The coder_app to display in the sidebar.", // TODO: need some clear guidance on what type of app to use here.
43+
Description: "The coder_app to display in the sidebar. Usually a chat interface with the AI agent running in the workspace, like https://github.com/coder/agentapi.",
4444
ForceNew: true,
4545
Required: true,
4646
MaxItems: 1,

0 commit comments

Comments
 (0)