Skip to content

Commit fb2f517

Browse files
replaced hard coded value for user_id to the value from the tool context from parent agent.
1 parent 25b2806 commit fb2f517

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/google/adk/tools/agent_tool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ async def run_async(
136136
)
137137
session = await runner.session_service.create_session(
138138
app_name=self.agent.name,
139-
user_id='tmp_user',
139+
user_id=tool_context._invocation_context.user_id,
140140
state=tool_context.state.to_dict(),
141141
)
142142

0 commit comments

Comments
 (0)