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: thoo/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
  • 20 commits
  • 70 files changed
  • 11 contributors

Commits on Jul 21, 2025

  1. Realtime: add user agent header (openai#1185)

    ---
    [//]: # (BEGIN SAPLING FOOTER)
    * openai#1198
    * __->__ openai#1185
    rm-openai authored Jul 21, 2025
    Configuration menu
    Copy the full SHA
    3e100f5 View commit details
    Browse the repository at this point in the history
  2. Realtime: make sure we use the initial model settings (openai#1198)

    Made a mistake here - we were ignoring the settings passed into the
    Runner init., and only usig the override settings passed to run()
    rm-openai authored Jul 21, 2025
    Configuration menu
    Copy the full SHA
    6cb9639 View commit details
    Browse the repository at this point in the history
  3. v0.2.3 (openai#1201)

    rm-openai authored Jul 21, 2025
    Configuration menu
    Copy the full SHA
    68b0ef1 View commit details
    Browse the repository at this point in the history
  4. Add automation script to generate mkdocstrings files (openai#1048)

    This pull request adds a new script for docs, which generates missing
    `ref/**/*.md` files. The script can be executed when you run `make
    build-docs` command. The script does not do:
    - overwrite the existing ones
    - create files for _XXX.py and `__init__.py`
    
    Note that the title part is generated like `tool_context` to `Tool
    Context`. `openai_provider` will be `Openai Provider`, so some of them
    needs a little manual work to adjust.
    
    The direct need is to add `tool_context.md` for
    openai#1043 but it should
    be useful for future maintenance.
    seratch authored Jul 21, 2025
    Configuration menu
    Copy the full SHA
    c5d5010 View commit details
    Browse the repository at this point in the history

Commits on Jul 22, 2025

  1. Configuration menu
    Copy the full SHA
    4d1ce04 View commit details
    Browse the repository at this point in the history
  2. Use real codex action (openai#1217)

    Used the wrong action 🤦
    rm-openai authored Jul 22, 2025
    Configuration menu
    Copy the full SHA
    e0b1cdf View commit details
    Browse the repository at this point in the history
  3. Update codex action to use repo syntax (openai#1218)

    Action isn't published yet, so gotta do this
    rm-openai authored Jul 22, 2025
    Configuration menu
    Copy the full SHA
    f6a6c51 View commit details
    Browse the repository at this point in the history

Commits on Jul 23, 2025

  1. Fixes two issues in the tracing documentation (openai#1212)

    1. **Grammar fix**: Remove duplicate "can" in the sentence about
    configuring trace names
    2. **Correct default value**: Update "Agent trace" to "Agent workflow"
    to match the actual default value in the codebase
    DanielHashmi authored Jul 23, 2025
    Configuration menu
    Copy the full SHA
    4350c34 View commit details
    Browse the repository at this point in the history
  2. Update all translated document pages (openai#1221)

    Automated update of translated documentation
    github-actions[bot] authored Jul 23, 2025
    Configuration menu
    Copy the full SHA
    b09d37d View commit details
    Browse the repository at this point in the history
  3. Fix RealtimeModel reference (openai#1215)

    ## Summary
    - document `agents.realtime.model` so the RealtimeModel link works
    - include the new file in the documentation navigation
    
    ## Testing
    - `make format`
    - `make lint`
    - `make mypy`
    - `make tests`
    
    
    ------
    https://chatgpt.com/codex/tasks/task_i_687fadfee88883219240b56e5abba76a
    rm-openai authored Jul 23, 2025
    Configuration menu
    Copy the full SHA
    46101cb View commit details
    Browse the repository at this point in the history

Commits on Jul 24, 2025

  1. Configuration menu
    Copy the full SHA
    a16da90 View commit details
    Browse the repository at this point in the history
  2. Update all translated document pages (openai#1232)

    Automated update of translated documentation
    
    Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
    github-actions[bot] and github-actions[bot] authored Jul 24, 2025
    Configuration menu
    Copy the full SHA
    88818fd View commit details
    Browse the repository at this point in the history

Commits on Jul 25, 2025

  1. Add LiteLLM to acknowledgements section (openai#1240)

    ## Summary
    - Added LiteLLM to the acknowledgements section in README.md
    - Recognized LiteLLM as a unified interface for 100+ LLMs, which aligns
    with the SDK's provider-agnostic approach
    
    ## Test plan
    - [x] Verify README renders correctly
    - [x] Ensure link to LiteLLM repository is functional
    colesmcintosh authored Jul 25, 2025
    Configuration menu
    Copy the full SHA
    44042e1 View commit details
    Browse the repository at this point in the history
  2. [Bugfix] Fix wrong imports in examples (openai#1241)

    The current script gives
    
    ```
    Traceback (most recent call last):
      File "/Users/xmxd289/code/openai-agents-python/examples/reasoning_content/main.py", line 19, in <module>
        from agents.types import ResponseOutputRefusal, ResponseOutputText  # type: ignore
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ModuleNotFoundError: No module named 'agents.types'
    ```
    
    because it should be
    
    `from openai.types.responses import ResponseOutputRefusal,
    ResponseOutputText`
    
    rather than
    
    `from agents.types import ResponseOutputRefusal, ResponseOutputText`
    
    ---------
    
    Co-authored-by: Michelangelo D'Agostino <mda@grainger.com>
    mdagost and Michelangelo D'Agostino authored Jul 25, 2025
    Configuration menu
    Copy the full SHA
    d052c1f View commit details
    Browse the repository at this point in the history
  3. Realtime: send audio item/content index (openai#1235)

    Will need this for a followup.
    
    ---
    [//]: # (BEGIN SAPLING FOOTER)
    * openai#1243
    * openai#1242
    * __->__ openai#1235
    rm-openai authored Jul 25, 2025
    Configuration menu
    Copy the full SHA
    7b84678 View commit details
    Browse the repository at this point in the history
  4. Fix openai#1227 Chat Completions model fails to handle streaming with…

    … openai 1.97.1+ (openai#1246)
    
    This pull request resolves openai#1227
    seratch authored Jul 25, 2025
    Configuration menu
    Copy the full SHA
    00412a1 View commit details
    Browse the repository at this point in the history
  5. Make Trace class inherit from abc.ABC for proper abstract base class …

    …behavior (openai#1233)
    
    The Trace class was using @abc.abstractmethod decorators without
    inheriting
    from abc.ABC, which meant the abstract methods weren't enforced.
    
    This change makes the class properly abstract while maintaining all
    existing functionality
    since no code directly instantiates Trace() - all usage goes through the
    concrete implementations NoOpTrace and TraceImpl.
    DanielHashmi authored Jul 25, 2025
    Configuration menu
    Copy the full SHA
    64b4a5f View commit details
    Browse the repository at this point in the history
  6. docs: add LangDB AI Gateway as a tracing provider (openai#1224)

    Adds LangDB AI Gateway to the External tracing processors list so
    developers can stream Agent‑SDK traces directly into LangDB’s
    dashboards.
    
    ## Highlights
    
    - End‑to‑end observability of every agent step, tool invocation, and
    guardrail.
    - Access to 350+ LLM models through a single OpenAI‑compatible endpoint.
    
    - Quick integration: `pip install "pylangdb[openai]" `
    ```python
    from pylangdb.openai import init
    init()
    
    client = AsyncOpenAI(
        api_key=os.environ["LANGDB_API_KEY"],
        base_url=os.environ["LANGDB_API_BASE_URL"],
        default_headers={"x-project-id": os.environ["LANGDB_PROJECT_ID"]},
    )
    set_default_openai_client(client)     
    ```
    - Live demo Thread:
    https://app.langdb.ai/sharing/threads/53b87631-de7f-431a-a049-48556f899b4d
    <img width="1636" height="903" alt="image"
    src="https://github.com/user-attachments/assets/075538fb-c1af-48e8-95fd-ff3d729ba37d"
    />
    
    Fixes openai#1222
    
    ---------
    
    Co-authored-by: mutahirshah11 <158048266+mutahirshah11@users.noreply.github.com>
    Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
    Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
    4 people authored Jul 25, 2025
    Configuration menu
    Copy the full SHA
    430dbaa View commit details
    Browse the repository at this point in the history

Commits on Jul 26, 2025

  1. Update all translated document pages (openai#1251)

    Automated update of translated documentation
    
    Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
    github-actions[bot] and github-actions[bot] authored Jul 26, 2025
    Configuration menu
    Copy the full SHA
    2c89461 View commit details
    Browse the repository at this point in the history
  2. Fix type placeholder convention (openai#1259)

    Updated the error message to replace the placeholder `your_type` with
    `YourType`, removing the underscore and adopting PascalCase, which
    aligns with standard Python type naming conventions.
    mshsheikh authored Jul 26, 2025
    Configuration menu
    Copy the full SHA
    7e632c2 View commit details
    Browse the repository at this point in the history
Loading