Skip to content

Commit ade8577

Browse files
GWealecopybara-github
authored andcommitted
fix: drop nonexistent log_query tool from session_state_agent sample
The instruction told the model to use a `log_query` tool that is not registered on the agent, so when the model followed it the run failed with "Tool 'log_query' not found". That made the integration_test presubmit, which runs this sample, flaky. Reword the instruction to just reply, matching the sample's documented output. Co-authored-by: George Weale <gweale@google.com> PiperOrigin-RevId: 943350141
1 parent f863150 commit ade8577

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • contributing/samples/context_management/session_state_agent

contributing/samples/context_management/session_state_agent/agent.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,8 @@ async def after_agent_callback(callback_context: CallbackContext):
168168
name='root_agent',
169169
description='a verification agent.',
170170
instruction=(
171-
'Log all users query with `log_query` tool. Must always remind user you'
172-
' cannot answer second query because your setup.'
171+
'Reply to the user. Must always remind user you cannot answer a second'
172+
' query because your setup.'
173173
),
174174
model='gemini-3.5-flash',
175175
before_agent_callback=before_agent_callback,

0 commit comments

Comments
 (0)