Skip to content

Commit c0a1115

Browse files
fix: Use pseudo ID for user in agent request
1 parent 947835a commit c0a1115

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

python/travel-adk-ai-agent/vertex_ai.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ async def request_agent(userName: str, input, handler: IAiAgentHandler):
147147
attempt += 1
148148
print(f"Attempting agent request #{attempt} / {MAX_AI_AGENT_RETRIES}...")
149149
# Stream the agent response
150-
for event_raw in ai_agent.stream_query(user_id=userName, session_id=session_id, message=handler.extract_content_from_input(input=input)):
150+
for event_raw in ai_agent.stream_query(user_id=get_agent_user_pseudo_id(userName), session_id=session_id, message=handler.extract_content_from_input(input=input)):
151151
responded = True
152152
event = dict(event_raw)
153153
if is_in_debug_mode():

0 commit comments

Comments
 (0)