8000 chore: Update triaging agent's model and event based prompt · google/adk-python@80f49ab · GitHub
[go: up one dir, main page]

Skip to content

Commit 80f49ab

Browse files
selcukguncopybara-github
authored andcommitted
chore: Update triaging agent's model and event based prompt
PiperOrigin-RevId: 772641797
1 parent c04adaa commit 80f49ab

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

contributing/samples/adk_triaging_agent/agent.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
import os
1616

1717
from google.adk import Agent
18+
from google.genai import types
19+
1820
import requests
1921

2022
GITHUB_TOKEN = os.getenv("GITHUB_TOKEN")
@@ -115,7 +117,7 @@ def add_label_to_issue(issue_number: str, label: str):
115117
)
116118

117119
root_agent = Agent(
118-
model="gemini-2.5-pro-preview-05-06",
120+
model="gemini-2.5-pro",
119121
name="adk_triaging_assistant",
120122
description="Triage ADK issues.",
121123
instruction=f"""
@@ -142,4 +144,7 @@ def add_label_to_issue(issue_number: str, label: str):
142144
list_issues,
143145
add_label_to_issue,
144146
],
147+
generate_content_config=types.GenerateContentConfig(
148+
temperature=0.0,
149+
),
145150
)

contributing/samples/adk_triaging_agent/main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ async def run_agent_prompt(session: Session, prompt_text: str):
116116
f" \"{specific_issue['body']}\"\n\nBased on the rules, recommend an"
117117
" appropriate label and its justification."
118118
" Then, use the 'add_label_to_issue' tool to apply the label "
119-
"directly to this issue."
119+
"directly to this issue. Only label this issue, do not process"
120+
" any other issues!"
120121
f" The issue number is {specific_issue['number']}."
121122
)
122123
await run_agent_prompt(session_11, prompt)

0 commit comments

Comments
 (0)
0