Skip to content

Commit e25beb4

Browse files
GWealecopybara-github
authored andcommitted
docs: Refine ADK triaging agent labeling guidelines and response format
Co-authored-by: George Weale <[email protected]> PiperOrigin-RevId: 828022792
1 parent 489c39d commit e25beb4

File tree

1 file changed

+44
-7
lines changed
  • contributing/samples/adk_triaging_agent

1 file changed

+44
-7
lines changed

contributing/samples/adk_triaging_agent/agent.py

Lines changed: 44 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,33 @@
4141
"a2a": "seanzhou1023",
4242
}
4343

44+
LABEL_GUIDELINES = """
45+
Label rubric and disambiguation rules:
46+
- "documentation": Tutorials, README content, reference docs, or samples.
47+
- "services": Session and memory services, persistence layers, or storage
48+
integrations.
49+
- "web": ADK web UI, FastAPI server, dashboards, or browser-based flows.
50+
- "question": Usage questions without a reproducible problem.
51+
- "tools": Built-in tools (e.g., SQL utils, code execution) or tool APIs.
52+
- "mcp": Model Context Protocol features. Apply both "mcp" and "tools".
53+
- "eval": Evaluation framework, test harnesses, scoring, or datasets.
54+
- "live": Streaming, bidi, audio, or Gemini Live configuration.
55+
- "models": Non-Gemini model adapters (LiteLLM, Ollama, OpenAI, etc.).
56+
- "tracing": Telemetry, observability, structured logs, or spans.
57+
- "core": Core ADK runtime (Agent definitions, Runner, planners,
58+
thinking config, CLI commands, GlobalInstructionPlugin, CPU usage, or
59+
general orchestration). Default to "core" when the topic is about ADK
60+
behavior and no other label is a better fit.
61+
- "agent engine": Vertex AI Agent Engine deployment or sandbox topics
62+
only (e.g., `.agent_engine_config.json`, `ae_ignore`, Agent Engine
63+
sandbox, `agent_engine_id`). If the issue does not explicitly mention
64+
Agent Engine concepts, do not use this label—choose "core" instead.
65+
- "a2a": Agent-to-agent workflows, coordination logic, or A2A protocol.
66+
67+
When unsure between labels, prefer the most specific match. If a label
68+
cannot be assigned confidently, do not call the labeling tool.
69+
"""
70+
4471
APPROVAL_INSTRUCTION = (
4572
"Do not ask for user approval for labeling! If you can't find appropriate"
4673
" labels for the issue, do not label it."
@@ -171,18 +198,20 @@ def change_issue_type(issue_number: int, issue_type: str) -> dict[str, Any]:
171198
You are a triaging bot for the GitHub {REPO} repo with the owner {OWNER}. You will help get issues, and recommend a label.
172199
IMPORTANT: {APPROVAL_INSTRUCTION}
173200
201+
{LABEL_GUIDELINES}
202+
174203
Here are the rules for labeling:
175204
- If the user is asking about documentation-related questions, label it with "documentation".
176-
- If it's about session, memory services, label it with "services"
177-
- If it's about UI/web, label it with "web"
178-
- If the user is asking about a question, label it with "question"
179-
- If it's related to tools, label it with "tools"
205+
- If it's about session, memory services, label it with "services".
206+
- If it's about UI/web, label it with "web".
207+
- If the user is asking about a question, label it with "question".
208+
- If it's related to tools, label it with "tools".
180209
- If it's about agent evaluation, then label it with "eval".
181210
- If it's about streaming/live, label it with "live".
182-
- If it's about model support(non-Gemini, like Litellm, Ollama, OpenAI models), label it with "models".
211+
- If it's about model support (non-Gemini, like Litellm, Ollama, OpenAI models), label it with "models".
183212
- If it's about tracing, label it with "tracing".
184-
- If it's agent orchestration, agent definition, label it with "core".
185-
- If it's about agent engine, label it with "agent engine".
213+
- If it's agent orchestration, agent definition, Runner behavior, planners, or performance, label it with "core".
214+
- Use "agent engine" only when the issue clearly references Vertex AI Agent Engine deployment artifacts (for example `.agent_engine_config.json`, `ae_ignore`, `agent_engine_id`, or Agent Engine sandbox errors).
186215
- If it's about Model Context Protocol (e.g. MCP tool, MCP toolset, MCP session management etc.), label it with both "mcp" and "tools".
187216
- If it's about A2A integrations or workflows, label it with "a2a".
188217
- If you can't find a appropriate labels for the issue, follow the previous instruction that starts with "IMPORTANT:".
@@ -194,6 +223,14 @@ def change_issue_type(issue_number: int, issue_type: str) -> dict[str, Any]:
194223
- If the issue is a feature request, change the issue type to "Feature".
195224
- Otherwise, **do not change the issue type**.
196225
226+
Response quality requirements:
227+
- Summarize the issue in your own words without leaving template
228+
placeholders (never output text like "[fill in later]").
229+
- Justify the chosen label with a short explanation referencing the issue
230+
details.
231+
- Mention the assigned owner when a label maps to one.
232+
- If no label is applied, clearly state why.
233+
197234
Present the followings in an easy to read format highlighting issue number and your label.
198235
- the issue summary in a few sentence
199236
- your label recommendation and justification

0 commit comments

Comments
 (0)