arijeetmukherjee3108-droid opened a new pull request, #41905:
URL: https://github.com/apache/beam/pull/41905

   Fixes #41904
   
   - Skip non-text parts (`p.text is None`) when joining the final response 
text in `_invoke_agent()` so responses with non-text parts don't crash with a 
`TypeError`. Still raises `ValueError` if no text parts are returned.
   - Delete auto-generated stateless sessions in a `finally` block once 
`_invoke_agent()` finishes (both on success and on error), while keeping 
user-provided `session_id` sessions intact.
   
   Added unit tests in `agent_development_kit_test.py` covering non-text 
response parts and stateless session cleanup.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

  • [PR] [RunInference] Fix... arijeetmukherjee3108-droid (via GitHub) via github

Reply via email to