Repository navigation
Did ADK not have api that contain user input information? #767
|
|
Replies: 1 comment
|
The session history can contain both user messages and agent responses. The After the run, fetch the session and inspect all of its events: session = await session_service.get_session(
app_name=app_name,
user_id=user_id,
session_id=session_id,
)
if session is not None:
for event in session.events:
if event.content is not None:
print(event.author, event.content)The If the fetched history contains only agent replies, check that the message was submitted through the |
The session history can contain both user messages and agent responses. The
Runnerappends each new user message as an event withauthor="user".After the run, fetch the session and inspect all of its events:
The
/apps/{app_name}/users/{user_id}/sessions/{session_id}endpoint returns that session. The liverun_async()/SSE output need not echo the input message back, even though the session stores it.If the fetched history contains o…