-
Notifications
You must be signed in to change notification settings - Fork 2k
Comparing changes
Open a pull request
base repository: openai/openai-agents-python
base: v0.2.0
head repository: openai/openai-agents-python
compare: v0.2.1
- 12 commits
- 44 files changed
- 6 contributors
Commits on Jul 15, 2025
-
1
Configuration menu - View commit details
-
Copy full SHA for c7d50cb - Browse repository at this point
Copy the full SHA c7d50cbView commit details -
Realtime: introduce a demo without a UI (#1135)
The UI demo is nice, but this let you print more logs to the console (at the cost of being ugly)
Configuration menu - View commit details
-
Copy full SHA for 6293d66 - Browse repository at this point
Copy the full SHA 6293d66View commit details
Commits on Jul 16, 2025
-
Configuration menu - View commit details
-
Copy full SHA for 479c171 - Browse repository at this point
Copy the full SHA 479c171View commit details -
Realtime: move demo audio to separate thread (#1141)
Without this, the audio playback contends for CPU with the event queue and mic input, which is bad
Configuration menu - View commit details
-
Copy full SHA for dff0548 - Browse repository at this point
Copy the full SHA dff0548View commit details -
MCP: add support for tool_result.structuredContent (#1150)
MCP recently added `structuredContent` as an additional field in tool results. This lets us use that field when sending the response to the model.
Configuration menu - View commit details
-
Copy full SHA for 66e5be3 - Browse repository at this point
Copy the full SHA 66e5be3View commit details -
Correct error message for invalid output types with strict JSON schema (
#1101) ### Problem 1. **Incorrect parameter reference**: Suggests passing `output_schema_strict=False` to `Agent()`, but this parameter doesn't exist 2. **Vague guidance**: The phrase "make the output type strict" doesn't explain HOW to make types strict ### Solution Updated the error message to provide accurate, actionable guidance: **Before:** ``` "Either make the output type strict, or pass output_schema_strict=False to your Agent()" ``` **After:** ``` "Either use a dataclass, Pydantic model, or TypedDict, or wrap your type with AgentOutputSchema(your_type, strict_json_schema=False)" ``` --------- Co-authored-by: Kazuhiro Sera <seratch@openai.com>
Configuration menu - View commit details
-
Copy full SHA for 99ba260 - Browse repository at this point
Copy the full SHA 99ba260View commit details -
Add Streaming of Function Call Arguments to Chat Completions (#999)
## Summary This PR implements real-time streaming of function call arguments as requested in #834. Previously, function call arguments were only emitted after the entire function call was complete, causing poor user experience for large parameter generation. ## Changes - **Enhanced `ChatCmplStreamHandler`**: Added real-time streaming of function call arguments during generation - **New streaming logic**: Function call arguments now stream incrementally as they are generated, similar to text content - **Backward compatibility**: Maintains existing behavior for completed function calls - **Comprehensive testing**: Added tests for both OpenAI and LiteLLM models - **Example implementation**: Created demonstration code showing the new streaming capability Closes #834
Configuration menu - View commit details
-
Copy full SHA for 00c87ea - Browse repository at this point
Copy the full SHA 00c87eaView commit details -
Empty mcp tool result error (#1142)
### Summary Fixed `MCPUtil.invoke_mcp_tool()` to return `"[]"` instead of logging an error when MCP tools return empty content. Empty results (`None, []`) are valid outputs and should be treated consistently with function tools. The `None -> "[]"` and `[] -> "[]"` behavior comes from the MCP Python SDK's[ FastMCP implementation]( https://github.com/modelcontextprotocol/python-sdk/blob/6566c08446ad37b66f1457532c7f5a14f243ae10/src/mcp/server/fastmcp/utilities/func_metadata.py#L500). ### Test plan - Added comprehensive test coverage in `test_mcp_fastmcp_behavior_verification()` that verifies all FastMCP edge cases - Enhanced FakeMCPServer to support custom content testing scenarios - Ran full test suite - all tests pass - Verified the fix handles `None, [], {}, [{}], [[]]` cases correctly ### Issue number Closes #1035 ### Checks - [x] I've added new tests (if relevant) - [ ] I've added/updated the relevant documentation - [x] I've run `make lint` and `make format` - [x] I've made sure tests pass Co-authored-by: thein <thein@MacBook-Pro.local>
Configuration menu - View commit details
-
Copy full SHA for 076eb72 - Browse repository at this point
Copy the full SHA 076eb72View commit details -
Configuration menu - View commit details
-
Copy full SHA for f63cc0c - Browse repository at this point
Copy the full SHA f63cc0cView commit details -
Add a web demo that uses a fastapi backend. Also remove the CLI UI demo.
Configuration menu - View commit details
-
Copy full SHA for 32997b2 - Browse repository at this point
Copy the full SHA 32997b2View commit details -
Configuration menu - View commit details
-
Copy full SHA for bbbcdae - Browse repository at this point
Copy the full SHA bbbcdaeView commit details -
Configuration menu - View commit details
-
Copy full SHA for aeb4381 - Browse repository at this point
Copy the full SHA aeb4381View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v0.2.0...v0.2.1