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: openai/openai-agents-python
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.2.6
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: v0.2.7
Choose a head ref
  • 17 commits
  • 51 files changed
  • 10 contributors

Commits on Aug 11, 2025

  1. Added runtime validation for Agent constructor arguments (#998)

    Add `__post_init__` validation to ensure Agent name is a string  
      
    The Agent class previously only used type hints for the name field
    without
    runtime validation, allowing non-string values like integers to be
    passed.
    This caused downstream errors during JSON serialization, tracing, and
    other
    operations that expect the name to be a string.  
      
    Changes:  
    - Add `__post_init__` method to Agent class with `isinstance` check  
    - Raise TypeError with descriptive message for non-string names  
    - Validation occurs at instantiation time to fail fast  
      
    Fixes issue where `Agent(name=1)` would succeed but cause errors later  
    in the execution pipeline.  
    
    Fixes #996
    DanielHashmi authored Aug 11, 2025
    Configuration menu
    Copy the full SHA
    f5fcd30 View commit details
    Browse the repository at this point in the history
  2. Realtime: add handoff prompt prefix (#1382)

    ---
    [//]: # (BEGIN SAPLING FOOTER)
    * #1388
    * __->__ #1382
    rm-openai authored Aug 11, 2025
    Configuration menu
    Copy the full SHA
    ce67311 View commit details
    Browse the repository at this point in the history
  3. feat(tests): add tests for unicode content, special characters, and c…

    …oncurrent access in SQLiteSession (#1399)
    PatrykBochenek authored Aug 11, 2025
    Configuration menu
    Copy the full SHA
    bad88e7 View commit details
    Browse the repository at this point in the history

Commits on Aug 13, 2025

  1. Configuration menu
    Copy the full SHA
    534e2d5 View commit details
    Browse the repository at this point in the history
  2. Fix #1407 Add reasoning.effort="minimal" and "verbosity" params to Mo…

    …delSettings (#1439)
    
    This pull request resolves #1407 ; the "minimal" reasoning effort param
    is already supported.
    seratch authored Aug 13, 2025
    Configuration menu
    Copy the full SHA
    e3b4856 View commit details
    Browse the repository at this point in the history

Commits on Aug 14, 2025

  1. Add a simple gpt-oss example (#1440)

    This pull request adds a simple gpt-oss example app
    seratch authored Aug 14, 2025
    Configuration menu
    Copy the full SHA
    4c436b7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e4699c3 View commit details
    Browse the repository at this point in the history
  3. Add input validation and type conversion for user input (#1462)

    ## Summary
    
    Fixed a type safety issue where user input was being used as a string
    without conversion to integer, which could cause runtime errors and type
    mismatches.
    
    ## Problem
    
    The code was using `input()` which returns a string, but then using it
    directly in the f-string without converting it to an integer. This could
    cause:
    - Type mismatches when the string is passed to functions expecting
    integers
    - Runtime errors when users enter non-numeric input
    - Inconsistent behavior with the function signature expectations
    
    ## Changes Made
    
    Added proper input validation and type conversion:
    - Wrapped the input processing in a try-except block
    - Convert user input to integer using `int(user_input)`
    - Added error handling for invalid input with user-friendly message
    - Used the converted integer value in the f-string instead of raw string
    input
    
    This ensures type safety and provides better user experience with proper
    error handling.
    Abbas-Asad authored Aug 14, 2025
    Configuration menu
    Copy the full SHA
    65cb91c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e976aff View commit details
    Browse the repository at this point in the history
  5. Update all translated document pages (#1469)

    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 Aug 14, 2025
    Configuration menu
    Copy the full SHA
    42a98f5 View commit details
    Browse the repository at this point in the history
  6. Migrate document translation script to gpt-5 (#1470)

    This pull request migrates the translation script from o3 to gpt-5
    model.
    seratch authored Aug 14, 2025
    Configuration menu
    Copy the full SHA
    aea05a6 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    ab3b85f View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    043b3d6 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    184eafc View commit details
    Browse the repository at this point in the history
  10. Update all translated document pages (#1473)

    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 Aug 14, 2025
    Configuration menu
    Copy the full SHA
    a9b8ab3 View commit details
    Browse the repository at this point in the history
  11. Realtime: one guardrail trip event per response (#1458)

    There was a problem with the current implementation, where for a single
    repsonse, we might have many different guardrails fire. We should have
    at most one per response.
    rm-openai authored Aug 14, 2025
    Configuration menu
    Copy the full SHA
    c436389 View commit details
    Browse the repository at this point in the history
  12. v0.2.7 (#1480)

    rm-openai authored Aug 14, 2025
    Configuration menu
    Copy the full SHA
    a17625e View commit details
    Browse the repository at this point in the history
Loading