openai-agents-python/tests
Muhammad Junaid 51d79bf141 fix: support assistant role in message conversion
- The _Converter.items_to_messages method was incorrectly rejecting 'assistant'
as a valid role in conversation messages, causing runtime errors when processing
standard chat completion message formats.
- This fix enables proper handling of
complete conversation contexts that include both user and assistant messages.
2025-03-12 21:10:03 +05:00
..
__init__.py Initial commit 2025-03-11 09:42:28 -07:00
conftest.py Initial commit 2025-03-11 09:42:28 -07:00
fake_model.py Initial commit 2025-03-11 09:42:28 -07:00
test_agent_config.py Initial commit 2025-03-11 09:42:28 -07:00
test_agent_hooks.py Initial commit 2025-03-11 09:42:28 -07:00
test_agent_runner.py Initial commit 2025-03-11 09:42:28 -07:00
test_agent_runner_streamed.py Initial commit 2025-03-11 09:42:28 -07:00
test_agent_tracing.py Initial commit 2025-03-11 09:42:28 -07:00
test_computer_action.py Initial commit 2025-03-11 09:42:28 -07:00
test_config.py make format 2025-03-11 14:54:10 -07:00
test_doc_parsing.py Initial commit 2025-03-11 09:42:28 -07:00
test_extension_filters.py Initial commit 2025-03-11 09:42:28 -07:00
test_function_schema.py Initial commit 2025-03-11 09:42:28 -07:00
test_function_tool.py Initial commit 2025-03-11 09:42:28 -07:00
test_function_tool_decorator.py Initial commit 2025-03-11 09:42:28 -07:00
test_global_hooks.py Initial commit 2025-03-11 09:42:28 -07:00
test_guardrails.py Initial commit 2025-03-11 09:42:28 -07:00
test_handoff_tool.py Initial commit 2025-03-11 09:42:28 -07:00
test_items_helpers.py pin to openai 1.66.2, update tests 2025-03-11 15:26:06 -07:00
test_max_turns.py Initial commit 2025-03-11 09:42:28 -07:00
test_openai_chatcompletions.py Initial commit 2025-03-11 09:42:28 -07:00
test_openai_chatcompletions_converter.py fix: support assistant role in message conversion 2025-03-12 21:10:03 +05:00
test_openai_chatcompletions_stream.py Initial commit 2025-03-11 09:42:28 -07:00
test_openai_responses_converter.py pin to openai 1.66.2, update tests 2025-03-11 15:26:06 -07:00
test_output_tool.py Initial commit 2025-03-11 09:42:28 -07:00
test_responses.py Initial commit 2025-03-11 09:42:28 -07:00
test_responses_tracing.py Initial commit 2025-03-11 09:42:28 -07:00
test_result_cast.py Initial commit 2025-03-11 09:42:28 -07:00
test_run_config.py Initial commit 2025-03-11 09:42:28 -07:00
test_run_step_execution.py Initial commit 2025-03-11 09:42:28 -07:00
test_run_step_processing.py pin to openai 1.66.2, update tests 2025-03-11 15:26:06 -07:00
test_strict_schema.py Initial commit 2025-03-11 09:42:28 -07:00
test_tool_converter.py Initial commit 2025-03-11 09:42:28 -07:00
test_trace_processor.py Initial commit 2025-03-11 09:42:28 -07:00
test_tracing.py Initial commit 2025-03-11 09:42:28 -07:00
test_tracing_errors.py Initial commit 2025-03-11 09:42:28 -07:00
test_tracing_errors_streamed.py Initial commit 2025-03-11 09:42:28 -07:00
testing_processor.py Initial commit 2025-03-11 09:42:28 -07:00