arijeetmukherjee3108-droid opened a new issue, #41904:
URL: https://github.com/apache/beam/issues/41904

   ### What happened?
   
   Ran into two issues in 
`sdks/python/apache_beam/ml/inference/agent_development_kit.py`:
   
   1. In `_invoke_agent()`, final response text is built with `"".join([p.text 
for p in event.content.parts])`. Since `Part.text` is optional and can be 
`None` (e.g. for inline data), this throws a `TypeError` whenever a final event 
contains any non-text part.
   
   2. In default stateless mode (when no `session_id` is passed in 
`inference_args`), `run_inference()` generates a fresh UUID and calls 
`create_session()` for every element, but never deletes it afterwards. With the 
default `InMemorySessionService`, those sessions stay in memory for the 
lifetime of the worker.
   
   ### Issue Priority
   
   Priority: 2 (default / most bugs should be filed as P2)
   
   ### Issue Components
   
   - [x] Component: Python SDK
   - [ ] Component: Java SDK
   - [ ] Component: Go SDK
   - [ ] Component: Typescript SDK
   - [ ] Component: IO connector
   - [ ] Component: Beam YAML
   - [ ] Component: Beam examples
   - [ ] Component: Beam playground
   - [ ] Component: Beam katas
   - [ ] Component: Website
   - [ ] Component: Infrastructure
   - [ ] Component: Spark Runner
   - [ ] Component: Flink Runner
   - [ ] Component: Prism Runner
   - [ ] Component: Hazelcast Jet Runner
   - [ ] Component: Google Cloud Dataflow Runner


-- 
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]

  • [I] [Bug]: ADKAgentMode... arijeetmukherjee3108-droid (via GitHub) via github

Reply via email to