File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
contributing/samples/adk_triaging_agent Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 15
15
import os
16
16
17
17
from google .adk import Agent
18
+ from google .genai import types
19
+
18
20
import requests
19
21
20
22
GITHUB_TOKEN = os .getenv ("GITHUB_TOKEN" )
@@ -115,7 +117,7 @@ def add_label_to_issue(issue_number: str, label: str):
115
117
)
116
118
117
119
root_agent = Agent (
118
- model = "gemini-2.5-pro-preview-05-06 " ,
120
+ model = "gemini-2.5-pro" ,
119
121
name = "adk_triaging_assistant" ,
120
122
description = "Triage ADK issues." ,
121
123
instruction = f"""
@@ -142,4 +144,7 @@ def add_label_to_issue(issue_number: str, label: str):
142
144
list_issues ,
143
145
add_label_to_issue ,
144
146
],
147
+ generate_content_config = types .GenerateContentConfig (
148
+ temperature = 0.0 ,
149
+ ),
145
150
)
Original file line number Diff line number Diff line change @@ -116,7 +116,8 @@ async def run_agent_prompt(session: Session, prompt_text: str):
116
116
f" \" { specific_issue ['body' ]} \" \n \n Based on the rules, recommend an"
117
117
" appropriate label and its justification."
118
118
" 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!"
120
121
f" The issue number is { specific_issue ['number' ]} ."
121
122
)
122
123
await run_agent_prompt (session_11 , prompt )
You can’t perform that action at this time.
0 commit comments