You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: registry/coder/modules/agentapi/README.md
+7-6Lines changed: 7 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,21 +1,22 @@
1
1
---
2
2
display_name: AgentAPI
3
-
description: Building block for modules that need to run an agentapi server
3
+
description: Building block for modules that need to run an AgentAPI server
4
4
icon: ../../../../.icons/coder.svg
5
5
verified: true
6
-
tags: [internal]
6
+
tags: [internal, library]
7
7
---
8
8
9
9
# AgentAPI
10
10
11
-
The AgentAPI module is a building block for modules that need to run an agentapi server. It is intended primarily for internal use by Coder to create modules compatible with Tasks.
11
+
> [!CAUTION]
12
+
> We do not recommend using this module directly. Instead, please consider using one of our [Tasks-compatible AI agent modules](https://registry.coder.com/modules?search=tag%3Atasks).
12
13
13
-
We do not recommend using this module directly. Instead, please consider using one of our [Tasks-compatible AI agent modules](https://registry.coder.com/modules?search=tag%3Atasks).
14
+
The AgentAPI module is a building block for modules that need to run an AgentAPI server. It is intended primarily for internal use by Coder to create modules compatible with Tasks.
For a complete example of how to use this module, see the [goose module](https://github.com/coder/registry/blob/main/registry/coder/modules/goose/main.tf).
54
+
For a complete example of how to use this module, see the [Goose module](https://github.com/coder/registry/blob/main/registry/coder/modules/goose/main.tf).
|`agent_id`| The ID of a Coder agent (required) |`string`| - |
36
-
|`folder`| The folder to run Aider in |`string`|`/home/coder`|
37
-
|`install_aider`| Whether to install Aider |`bool`|`true`|
38
-
|`aider_version`| The version of Aider to install |`string`|`"latest"`|
39
-
|`use_screen`| Whether to use screen for running Aider in the background |`bool`|`true`|
40
-
|`use_tmux`| Whether to use tmux instead of screen for running Aider in the background |`bool`|`false`|
41
-
|`session_name`| Name for the persistent session (screen or tmux) |`string`|`"aider"`|
42
-
|`order`| Position of the app in the UI presentation |`number`|`null`|
43
-
|`icon`| The icon to use for the app |`string`|`"/icon/aider.svg"`|
44
-
|`experiment_report_tasks`| Whether to enable task reporting |`bool`|`true`|
45
-
|`system_prompt`| System prompt for instructing Aider on task reporting and behavior |`string`| See default in code |
46
-
|`task_prompt`| Task prompt to use with Aider |`string`|`""`|
47
-
|`ai_provider`| AI provider to use with Aider (openai, anthropic, azure, etc.) |`string`|`"anthropic"`|
48
-
|`ai_model`| AI model to use (can use Aider's built-in aliases like "sonnet", "4o") |`string`|`"sonnet"`|
49
-
|`ai_api_key`| API key for the selected AI provider |`string`|`""`|
50
-
|`custom_env_var_name`| Custom environment variable name when using custom provider |`string`|`""`|
51
-
|`experiment_pre_install_script`| Custom script to run before installing Aider |`string`|`null`|
52
-
|`experiment_post_install_script`| Custom script to run after installing Aider |`string`|`null`|
53
-
|`experiment_additional_extensions`| Additional extensions configuration in YAML format to append to the config |`string`|`null`|
54
-
55
-
> **Note**: `use_screen` and `use_tmux` cannot both be enabled at the same time. By default, `use_screen` is set to `true` and `use_tmux` is set to `false`.
33
+
> [!NOTE]
34
+
> The `use_screen` and `use_tmux` parameters cannot both be enabled at the same time. By default, `use_screen` is set to `true` and `use_tmux` is set to `false`.
56
35
57
36
## Usage Examples
58
37
@@ -68,7 +47,7 @@ variable "anthropic_api_key" {
68
47
module "aider" {
69
48
count = data.coder_workspace.me.start_count
70
49
source = "registry.coder.com/coder/aider/coder"
71
-
version = "1.1.1"
50
+
version = "1.1.2"
72
51
agent_id = coder_agent.example.id
73
52
ai_api_key = var.anthropic_api_key
74
53
}
@@ -93,7 +72,7 @@ variable "openai_api_key" {
93
72
module "aider" {
94
73
count = data.coder_workspace.me.start_count
95
74
source = "registry.coder.com/coder/aider/coder"
96
-
version = "1.1.1"
75
+
version = "1.1.2"
97
76
agent_id = coder_agent.example.id
98
77
use_tmux = true
99
78
ai_provider = "openai"
@@ -114,7 +93,7 @@ variable "custom_api_key" {
114
93
module "aider" {
115
94
count = data.coder_workspace.me.start_count
116
95
source = "registry.coder.com/coder/aider/coder"
117
-
version = "1.1.1"
96
+
version = "1.1.2"
118
97
agent_id = coder_agent.example.id
119
98
ai_provider = "custom"
120
99
custom_env_var_name = "MY_CUSTOM_API_KEY"
@@ -131,7 +110,7 @@ You can extend Aider's capabilities by adding custom extensions:
131
110
module "aider" {
132
111
count = data.coder_workspace.me.start_count
133
112
source = "registry.coder.com/coder/aider/coder"
134
-
version = "1.1.1"
113
+
version = "1.1.2"
135
114
agent_id = coder_agent.example.id
136
115
ai_api_key = var.anthropic_api_key
137
116
@@ -210,7 +189,7 @@ data "coder_parameter" "ai_prompt" {
0 commit comments