Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ed0ooo/openai-agents-python
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: openai/openai-agents-python
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 13 commits
  • 39 files changed
  • 8 contributors

Commits on May 19, 2025

  1. Configuration menu
    Copy the full SHA
    428c9a6 View commit details
    Browse the repository at this point in the history

Commits on May 20, 2025

  1. Dev/add usage details to Usage class (openai#726)

    PR to enhance the `Usage` object and related logic, to support more
    granular token accounting, matching the details available in the [OpenAI
    Responses API](https://platform.openai.com/docs/api-reference/responses)
    . Specifically, it:
    
    - Adds `input_tokens_details` and `output_tokens_details` fields to the
    `Usage` dataclass, storing detailed token breakdowns (e.g.,
    `cached_tokens`, `reasoning_tokens`).
    - Flows this change through
    - Updates and extends tests to match
    - Adds a test for the Usage.add method
    
    ### Motivation
    - Aligns the SDK’s usage with the latest OpenAI responses API Usage
    object
    - Supports downstream use cases that require fine-grained token usage
    data (e.g., billing, analytics, optimization) requested by startups
    
    ---------
    
    Co-authored-by: Wulfie Bain <[email protected]>
    WJPBProjects and WJPBProjects authored May 20, 2025
    Configuration menu
    Copy the full SHA
    466b44d View commit details
    Browse the repository at this point in the history

Commits on May 21, 2025

  1. Upgrade openAI sdk version (openai#730)

    ---
    [//]: # (BEGIN SAPLING FOOTER)
    * openai#732
    * openai#731
    * __->__ openai#730
    rm-openai authored May 21, 2025
    Configuration menu
    Copy the full SHA
    ce2e2a4 View commit details
    Browse the repository at this point in the history
  2. Hosted MCP support (openai#731)

    ---
    [//]: # (BEGIN SAPLING FOOTER)
    * openai#732
    * __->__ openai#731
    rm-openai authored May 21, 2025
    Configuration menu
    Copy the full SHA
    9fa5c39 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    079764f View commit details
    Browse the repository at this point in the history
  4. v0.0.16 (openai#733)

    rm-openai authored May 21, 2025
    Configuration menu
    Copy the full SHA
    1992be3 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    1364f44 View commit details
    Browse the repository at this point in the history

Commits on May 23, 2025

  1. Fix visualization recursion with cycle detection (openai#737)

    ## Summary
    - avoid infinite recursion in visualization by tracking visited agents
    - test cycle detection in graph utility
    
    ## Testing
    - `make mypy`
    - `make tests` 
    
    Resolves openai#668
    rm-openai authored May 23, 2025
    Configuration menu
    Copy the full SHA
    db462e3 View commit details
    Browse the repository at this point in the history
  2. Update MCP and tool docs (openai#736)

    ## Summary
    - mention MCPServerStreamableHttp in MCP server docs
    - document CodeInterpreterTool, HostedMCPTool, ImageGenerationTool and
    LocalShellTool
    - update Japanese translations
    rm-openai authored May 23, 2025
    Configuration menu
    Copy the full SHA
    a96108e View commit details
    Browse the repository at this point in the history
  3. Fix Gemini API content filter handling (openai#746)

    ## Summary
    - avoid AttributeError when Gemini API returns `None` for chat message
    - return empty output if message is filtered
    - add regression test
    
    ## Testing
    - `make format`
    - `make lint`
    - `make mypy`
    - `make tests`
    
    Towards openai#744
    rm-openai authored May 23, 2025
    Configuration menu
    Copy the full SHA
    6e078bf View commit details
    Browse the repository at this point in the history

Commits on May 29, 2025

  1. Add Portkey AI as a tracing provider (openai#785)

    This PR adds Portkey AI as a tracing provider. Portkey helps you take
    your OpenAI agents from prototype to production.
    
    Portkey turns your experimental OpenAI Agents into production-ready
    systems by providing:
    
    - Complete observability of every agent step, tool use, and interaction
    - Built-in reliability with fallbacks, retries, and load balancing
    - Cost tracking and optimization to manage your AI spend
    - Access to 1600+ LLMs through a single integration
    - Guardrails to keep agent behavior safe and compliant
    - Version-controlled prompts for consistent agent performance
    
    
    Towards openai#786
    siddharthsambharia-portkey authored May 29, 2025
    Configuration menu
    Copy the full SHA
    d46e2ec View commit details
    Browse the repository at this point in the history
  2. Added RunErrorDetails object for MaxTurnsExceeded exception (openai#743)

    ### Summary
    
    Introduced the `RunErrorDetails` object to get partial results from a
    run interrupted by `MaxTurnsExceeded` exception. In this proposal the
    `RunErrorDetails` object contains all the fields from `RunResult` with
    `final_output` set to `None` and `output_guardrail_results` set to an
    empty list. We can decide to return less information.
    
    @rm-openai At the moment the exception doesn't return the
    `RunErrorDetails` object for the streaming mode. Do you have any
    suggestions on how to deal with it? In the `_check_errors` function of
    `agents/result.py` file.
    
    ### Test plan
    
    I have not implemented any tests currently, but if needed I can
    implement a basic test to retrieve partial data.
    
    ### Issue number
    
    This PR is an attempt to solve issue openai#719 
    
    ### Checks
    
    - [✅ ] I've added new tests (if relevant)
    - [ ] I've added/updated the relevant documentation
    - [ ✅] I've run `make lint` and `make format`
    - [ ✅] I've made sure tests pass
    DanieleMorotti authored May 29, 2025
    Configuration menu
    Copy the full SHA
    7196862 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    47fa8e8 View commit details
    Browse the repository at this point in the history
Loading