Skip to content

Commit 3b7e121

Browse files
committed
add CLI support
1 parent 7e5fa8e commit 3b7e121

File tree

4 files changed

+21
-0
lines changed

4 files changed

+21
-0
lines changed

src/agentex/lib/cli/commands/init.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,16 @@ def validate_agent_name(text: str) -> bool | str:
184184
).ask()
185185
if not description:
186186
return
187+
188+
agent_input_type = questionary.select(
189+
"What type of input will your agent handle?",
190+
choices=[
191+
{"name": "Text Input", "value": "text"},
192+
{"name": "Structured Input", "value": "json"},
193+
],
194+
).ask()
195+
if not agent_input_type:
196+
return
187197

188198
use_uv = questionary.select(
189199
"Would you like to use uv for package management?",
@@ -196,10 +206,12 @@ def validate_agent_name(text: str) -> bool | str:
196206
answers = {
197207
"template_type": template_type,
198208
"project_path": project_path,
209+
"agent_input_type": agent_input_type,
199210
"agent_name": agent_name,
200211
"agent_directory_name": agent_directory_name,
201212
"description": description,
202213
"use_uv": use_uv,
214+
203215
}
204216

205217
# Derive all names from agent_directory_name and path

src/agentex/lib/cli/templates/default/manifest.yaml.j2

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ agent:
6767
# Helps with documentation and discovery
6868
description: {{ description }}
6969

70+
# Type of input the agent will handle: text or json
71+
agent_input_type: {{ agent_input_type }}
72+
7073
# Temporal workflow configuration
7174
# Set enabled: true to use Temporal workflows for long-running tasks
7275
temporal:

src/agentex/lib/cli/templates/sync/manifest.yaml.j2

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ agent:
6666
# Helps with documentation and discovery
6767
description: {{ description }}
6868

69+
# Type of input the agent will handle: text or json
70+
agent_input_type: {{ agent_input_type }}
71+
6972
# Temporal workflow configuration
7073
# Set enabled: true to use Temporal workflows for long-running tasks
7174
temporal:

src/agentex/lib/cli/templates/temporal/manifest.yaml.j2

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ agent:
7575
# Helps with documentation and discovery
7676
description: {{ description }}
7777

78+
# Type of input the agent will handle: text or json
79+
agent_input_type: {{ agent_input_type }}
80+
7881
# Temporal workflow configuration
7982
# This enables your agent to run as a Temporal workflow for long-running tasks
8083
temporal:

0 commit comments

Comments
 (0)