Skip to content

Commit e41ea88

Browse files
committed
fix: enhance state filtering in _SearchAgentTool to exclude temporary states
1 parent b19353a commit e41ea88

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/google/adk/tools/_search_agent_tool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ async def run_async(
6868
state_dict = {
6969
k: v
7070
for k, v in tool_context.state.to_dict().items()
71-
if not k.startswith('_adk') # Filter out adk internal states
71+
if not k.startswith('_adk') and not k.startswith('temp:')
7272
}
7373
session = await runner.session_service.create_session(
7474
app_name=self.agent.name,

0 commit comments

Comments
 (0)