Skip to content

Commit 9f96af1

Browse files
authored
feat: add display_name support and rebrand langgraph as custom_a2a (#737)
- Add display_name field to templateconfig.yaml for custom agent names - Update create and list commands to use display_name when available - Rebrand langgraph template as "custom_a2a" ("Bring your own framework") - Add "custom" and "custom_a2a" aliases pointing to langgraph template - Change group header from "Python (LangGraph)" to "Python (A2A)"
1 parent cfd4088 commit 9f96af1

File tree

4 files changed

+12
-5
lines changed

4 files changed

+12
-5
lines changed

agent_starter_pack/agents/langgraph/.template/templateconfig.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
description: "ReAct agent with A2A protocol"
15+
display_name: "custom_a2a"
16+
description: "Bring your own framework, A2A-ready"
1617
settings:
1718
requires_data_ingestion: false
1819
deployment_targets: ["agent_engine", "cloud_run"]

agent_starter_pack/cli/commands/create.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1074,7 +1074,7 @@ def display_agent_selection(deployment_target: str | None = None) -> str:
10741074
# Group headers for display
10751075
GROUP_HEADERS = {
10761076
("python", "adk"): "🐍 Python (ADK)",
1077-
("python", "langgraph"): "🦜 Python (LangGraph)",
1077+
("python", "langgraph"): "🐍 Python (A2A)",
10781078
("go", "adk"): "🔵 Go (ADK)",
10791079
}
10801080

@@ -1090,8 +1090,9 @@ def display_agent_selection(deployment_target: str | None = None) -> str:
10901090
header = GROUP_HEADERS.get(agent_group, "Other")
10911091
console.print(f"\n [bold cyan]{header}[/]")
10921092

1093-
# Align agent names for cleaner display
1094-
name_padded = agent["name"].ljust(14)
1093+
# Align agent names for cleaner display (use display_name if available)
1094+
display_name = agent.get("display_name", agent["name"])
1095+
name_padded = display_name.ljust(14)
10951096
console.print(
10961097
f" {num}. [bold]{name_padded}[/] [dim]{agent['description']}[/]"
10971098
)

agent_starter_pack/cli/commands/list.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,5 +199,6 @@ def list_agents(adk: bool, source: str | None) -> None:
199199
table.add_column("Description")
200200

201201
for i, (_, agent) in enumerate(agents.items()):
202-
table.add_row(str(i + 1), agent["name"], agent["description"])
202+
display_name = agent.get("display_name", agent["name"])
203+
table.add_row(str(i + 1), display_name, agent["description"])
203204
console.print(table)

agent_starter_pack/cli/utils/template.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@
5656
AGENT_ALIASES: dict[str, str] = {
5757
"adk_base": "adk",
5858
"langgraph_base": "langgraph",
59+
"custom": "langgraph",
60+
"custom_a2a": "langgraph",
5961
"adk_a2a_base": "adk_a2a",
6062
"adk_base_go": "adk_go",
6163
}
@@ -402,10 +404,12 @@ def get_available_agents(deployment_target: str | None = None) -> dict:
402404
framework = "other"
403405

404406
description = config.get("description", "No description available")
407+
display_name = config.get("display_name", agent_name)
405408
priority = PRIORITY_ORDER.get(agent_name, 100)
406409

407410
agent_info = {
408411
"name": agent_name,
412+
"display_name": display_name,
409413
"description": description,
410414
"language": language,
411415
"framework": framework,

0 commit comments

Comments
 (0)