the removed line is not needed -events is never used and the 2 lines below is creating events_async
Co-authored-by: Joe Fernandez <joefernandez@users.noreply.github.com>
In the human-in-the-loop example, the long_running_function_response
variable could be overwritten with `None` by a subsequent event that
did not contain a function response. This would cause the logic that
depends on the response to fail.
Fixes#375
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Co-authored-by: Joe Fernandez <joefernandez@users.noreply.github.com>
* fix: change call_agent to call_agent_async
* added await in storyflow where missing
* updated callbacks and storyflow with await and user comment
* fixed more
* added licencse header
---------
Co-authored-by: Lavi Nigam <98014943+lavinigam-gcp@users.noreply.github.com>
Co-authored-by: Lavi Nigam <lavinigam@google.com>
The LRO (Long-Running Operation) and HTIL (Human-in-the-Loop) tools were failing to execute properly due to an unhandled promise.
The `session_service.create_session` method is asynchronous but was not being awaited, causing race conditions. This change adds the required `await` to ensure proper execution flow.
Additionally, the related documentation has been updated to reflect the corrected code.
Changed the agent's description from second-person (you) to third-person (this agent).
I also fixed a couple of grammatical errors in the agent's instructions.
* fix: update gemini 2.0 flash to latest model id for Live API
* fix: use -flash for most pages instead of the live api model
* fix: wording andformatting
* fix: resolve merge conflict