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

Skip to content

Commit fcf82f2

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

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

contributing/samples/adk_triaging_agent/agent.py

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

1717
from google.adk import Agent
18+
from google.genai import types
1819
import requests
1920

2021
GITHUB_TOKEN = os.getenv("GITHUB_TOKEN")
@@ -115,7 +116,7 @@ def add_label_to_issue(issue_number: str, label: str):
115116
)
116117

117118
root_agent = Agent(
118-
model="gemini-2.5-pro-preview-05-06",
119+
model="gemini-2.5-pro",
119120
name="adk_triaging_assistant",
120121
description="Triage ADK issues.",
121122
instruction=f"""
@@ -142,4 +143,7 @@ def add_label_to_issue(issue_number: str, label: str):
142143
list_issues,
143144
add_label_to_issue,
144145
],
146+
generate_content_config=types.GenerateContentConfig(
147+
temperature=0.0,
148+
),
145149
)

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