openllmetry
openllmetry copied to clipboard
fix bug #2513(vertexai): improve input attribute handling for prompts and conte…
Fix Bug Report: Whole message history is stringified into a single 'user prompt' #2513
-
Bug Analysis Current Behavior Messages from chat history are combined into single string All roles and content merged into one user prompt Loses message separation and role information
-
Root Cause _set_input_attributes() treating Content list as plain text Not properly parsing individual Content objects Missing logic to handle chat message format
-
Impact Loss of conversation structure in telemetry Incorrect attribution of message roles Poor observability of chat interactions
-
Fix Required Update _set_input_attributes() to handle Content objects Parse role and parts from each message Store each message separately with correct role Maintain message order with index
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
kowshik seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.