Skip to content
Discussion options

You must be logged in to vote

Response from ADK Answering Agent (experimental, answer may be inaccurate)

TLDR: In the Google ADK, session management is handled by a SessionService. To determine the user_id and whether a chat is new or existing, you should create a unique session for each user conversation. The user_id is passed when creating a session and is used to identify the user associated with that session. You can differentiate between a new and existing chat by managing session IDs on your application's side.


Here is a more detailed explanation:

When building agents with the ADK, the Session object is the key to managing conversation history and state for a specific user interaction. Here’s how you can handle…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@mscdw
Comment options

@hangfei
Comment options

Answer selected by hangfei
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
bot responded [Bot] This issue is responded by ADK bot
3 participants