We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
str
1 parent 73ac9b7 commit 86019f7Copy full SHA for 86019f7
sentry_sdk/integrations/openai_agents/utils.py
@@ -130,10 +130,15 @@ def _set_input_data(span, get_response_kwargs):
130
for message in get_response_kwargs.get("input", []):
131
if "role" in message:
132
normalized_role = normalize_message_role(message.get("role"))
133
+ content = message.get("content")
134
request_messages.append(
135
{
136
"role": normalized_role,
- "content": message.get("content"),
137
+ "content": (
138
+ [{"type": "text", "text": content}]
139
+ if isinstance(content, str)
140
+ else content
141
+ ),
142
}
143
)
144
else:
0 commit comments