Skip to content

Commit fa03579

Browse files
Merge pull request #262 from scaleapi/dm/langgraph-templates
Reorder CLI template menu to sync, async, temporal
2 parents 6d59e48 + 2648ae8 commit fa03579

File tree

2 files changed

+358
-8
lines changed

2 files changed

+358
-8
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,10 @@ def init():
132132
table = Table(show_header=True, header_style="bold blue")
133133
table.add_column("Template", style="cyan", no_wrap=True)
134134
table.add_column("Description", style="white")
135+
table.add_row(
136+
"[bold cyan]Sync ACP[/bold cyan]",
137+
"Synchronous agent that processes one request per task with a simple request-response pattern. Best for low-latency use cases, FAQ bots, translation services, and data lookups.",
138+
)
135139
table.add_row(
136140
"[bold cyan]Async - ACP Only[/bold cyan]",
137141
"Asynchronous, non-blocking agent that can process multiple concurrent requests. Best for straightforward asynchronous agents that don't need durable execution. Good for asynchronous workflows, stateful applications, and multi-step analysis.",
@@ -140,10 +144,6 @@ def init():
140144
"[bold cyan]Async - Temporal[/bold cyan]",
141145
"Asynchronous, non-blocking agent with durable execution for all steps. Best for production-grade agents that require complex multi-step tool calls, human-in-the-loop approvals, and long-running processes that require transactional reliability.",
142146
)
143-
table.add_row(
144-
"[bold cyan]Sync ACP[/bold cyan]",
145-
"Synchronous agent that processes one request per task with a simple request-response pattern. Best for low-latency use cases, FAQ bots, translation services, and data lookups.",
146-
)
147147
console.print()
148148
console.print(table)
149149
console.print()
@@ -159,9 +159,9 @@ def validate_agent_name(text: str) -> bool | str:
159159
template_type = questionary.select(
160160
"What type of template would you like to create?",
161161
choices=[
162+
{"name": "Sync ACP", "value": "sync_submenu"},
162163
{"name": "Async - ACP Only", "value": "async_submenu"},
163164
{"name": "Async - Temporal", "value": "temporal_submenu"},
164-
{"name": "Sync ACP", "value": "sync_submenu"},
165165
],
166166
).ask()
167167
if not template_type:

0 commit comments

Comments
 (0)