File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
contributing/samples/adk_triaging_agent Expand file tree Collapse file tree 2 files changed +7
-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
18
19
import requests
19
20
20
21
GITHUB_TOKEN = os .getenv ("GITHUB_TOKEN" )
@@ -115,7 +116,7 @@ def add_label_to_issue(issue_number: str, label: str):
115
116
)
116
117
117
118
root_agent = Agent (
118
- model = "gemini-2.5-pro-preview-05-06 " ,
119
+ model = "gemini-2.5-pro" ,
119
120
name = "adk_triaging_assistant" ,
120
121
description = "Triage ADK issues." ,
121
122
instruction = f"""
@@ -142,4 +143,7 @@ def add_label_to_issue(issue_number: str, label: str):
142
143
list_issues ,
143
144
add_label_to_issue ,
144
145
],
146
+ generate_content_config = types .GenerateContentConfig (
147
+ temperature = 0.0 ,
148
+ ),
145
149
)
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