You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Python: [Bug]: hosting-responses rejects input messages that omit "type" #9123
messages_from_responses_input in agent_framework_hosting_responses/_parsing.py only treats an input item as a message when it has "type": "message". In the OpenAI Responses API type is optional on message items (EasyInputMessage), and the OpenAI SDK sends the common shorthand without it:
client.responses.create(model=..., input=[
{"role": "developer", "content": "Talk like a pirate."},
{"role": "user", "content": "Are semicolons optional?"},
])
The hosting app rejects that request with HTTP 400:
🤖 Automated triage reproduction notes(agent-authored — trust but verify)
Agent analysis
python/packages/hosting-responses/agent_framework_hosting_responses/_parsing.py::messages_from_responses_input at lines 150-175 rejects list items containing role and content when type is omitted, ultimately raising at line 125. Minimal repro: call the function with [{"role": "developer", "content": "Talk like a pirate."}, {"role": "user", "content": "Are semicolons optional?"}].
Activity
github-actions commentedon Oct 6, 2026
🤖 Automated triage reproduction notes (agent-authored — trust but verify)
Agent analysis
python/packages/hosting-responses/agent_framework_hosting_responses/_parsing.py::messages_from_responses_inputat lines 150-175 rejects list items containingroleandcontentwhentypeis omitted, ultimately raising at line 125. Minimal repro: call the function with[{"role": "developer", "content": "Talk like a pirate."}, {"role": "user", "content": "Are semicolons optional?"}].python/packages/hosting-responses/tests/hosting_responses/test_parsing.py::TestMessagesFromResponsesInput::test_message_without_type_with_string_contentmain (279d97f7)1.0.0a261002