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: livelock/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.
  • 9 commits
  • 32 files changed
  • 3 contributors

Commits on Jun 2, 2025

  1. Fix openai#777 by handling MCPCall events in RunImpl (openai#799)

    This pull request resolves openai#777; If you think we should introduce a new
    item type for MCP call output, please let me know. As other hosted tools
    use this event, I believe using the same should be good to go tho.
    seratch authored Jun 2, 2025
    Configuration menu
    Copy the full SHA
    3e7b286 View commit details
    Browse the repository at this point in the history
  2. Ensure item.model_dump only contains JSON serializable types (openai#801

    )
    
    The EmbeddedResource from MCP tool call contains a field with type
    AnyUrl that is not JSON-serializable. To avoid this exception, use
    item.model_dump(mode="json") to ensure a JSON-serializable return value.
    westhood authored Jun 2, 2025
    Configuration menu
    Copy the full SHA
    775d3e2 View commit details
    Browse the repository at this point in the history
  3. Don't cache agent tools during a run (openai#803)

    ### Summary:
    Towards openai#767. We were caching the list of tools for an agent, so if you
    did `agent.tools.append(...)` from a tool call, the next call to the
    model wouldn't include the new tool. THis is a bug.
    
    ### Test Plan:
    Unit tests. Note that now MCP tools are listed each time the agent runs
    (users can still cache the `list_tools` however).
    rm-openai authored Jun 2, 2025
    Configuration menu
    Copy the full SHA
    d4c7a23 View commit details
    Browse the repository at this point in the history
  4. Only start tracing worker thread on first span/trace (openai#804)

    Closes openai#796. Shouldn't start a busy waiting thread if there aren't any
    traces.
    
    Test plan
    ```
    import threading
    assert threading.active_count() == 1
    import agents
    assert threading.active_count() == 1
    ```
    rm-openai authored Jun 2, 2025
    Configuration menu
    Copy the full SHA
    995af4d View commit details
    Browse the repository at this point in the history

Commits on Jun 3, 2025

  1. Add is_enabled to FunctionTool (openai#808)

    ### Summary:
    Allows a user to do `function_tool(is_enabled=<some_callable>)`; the
    callable is called when the agent runs.
    
    This allows you to dynamically enable/disable a tool based on the
    context/env.
    
    The meta-goal is to allow `Agent` to be effectively immutable. That
    enables some nice things down the line, and this allows you to
    dynamically modify the tools list without mutating the agent.
    
    ### Test Plan:
    Unit tests
    rm-openai authored Jun 3, 2025
    Configuration menu
    Copy the full SHA
    4046fcb View commit details
    Browse the repository at this point in the history

Commits on Jun 4, 2025

  1. v0.0.17 (openai#809)

    bump version
    rm-openai authored Jun 4, 2025
    Configuration menu
    Copy the full SHA
    204bec1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4a529e6 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    05db7a6 View commit details
    Browse the repository at this point in the history
  4. Add release documentation (openai#814)

    ## Summary
    - describe semantic versioning and release steps
    - add release page to documentation nav
    
    ## Testing
    - `make format`
    - `make lint`
    - `make mypy`
    - `make tests`
    - `make build-docs`
    
    
    ------
    https://chatgpt.com/codex/tasks/task_i_68409d25afdc83218ad362d10c8a80a1
    rm-openai authored Jun 4, 2025
    Configuration menu
    Copy the full SHA
    5c7c678 View commit details
    Browse the repository at this point in the history
Loading