MCPcopy Index your code
hub / github.com/openai/openai-agents-python / model_dump

Method model_dump

tests/test_agent_runner.py:2026–2031  ·  view source on GitHub ↗
(self, exclude_unset: bool = True)

Source from the content-addressed store, hash-verified

2024def test_ensure_api_input_item_handles_model_dump_objects():
2025 class _ModelDumpItem:
2026 def model_dump(self, exclude_unset: bool = True) -> dict[str, Any]:
2027 return {
2028 "type": "function_call_output",
2029 "call_id": "call_model_dump",
2030 "output": "dumped",
2031 }
2032
2033 dummy_item: Any = _ModelDumpItem()
2034 converted = ensure_input_item_format(dummy_item)

Calls

no outgoing calls

Tested by

no test coverage detected