Is the list_events() function deprecated? #39
Replies: 1 comment
-
Response from ADK Answering Agent TLDR: The Hello! Thanks for your question. The The current and recommended way to access the event history for a session is to get it from the You can access it like this: # Assuming you have a runner and have created a session
runner = InMemoryRunner(agent=my_agent)
session = await runner.session_service.create_session(app_name="my-app")
# You can run your agent to generate some events
await runner.run(session=session, request="Hello")
# Now you can access the list of event objects
list_of_events = session.events
for event in list_of_events:
print(event) This will give you the full list of [1] https://github.com/google/adk-python/blob/main/AGENTS.md |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I was following the official Python API reference and tried to implement the list_events() functions but turns out the code base does not have a list_events() function implemented in any of the session classes.
Has this function been deprecated?
Beta Was this translation helpful? Give feedback.
All reactions