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

Commits on Apr 23, 2025

  1. Configuration menu
    Copy the full SHA
    111fc9e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    178020e View commit details
    Browse the repository at this point in the history
  3. Allow cancel out of the streaming result (#579)

    Fix for #574 
    
    @rm-openai I'm not sure how to add a test within the repo but I have
    pasted a test script below that seems to work
    
    ```python
    import asyncio
    from openai.types.responses import ResponseTextDeltaEvent
    from agents import Agent, Runner
    
    async def main():
        agent = Agent(
            name="Joker",
            instructions="You are a helpful assistant.",
        )
    
        result = Runner.run_streamed(agent, input="Please tell me 5 jokes.")
        num_visible_event = 0
        async for event in result.stream_events():
            if event.type == "raw_response_event" and isinstance(event.data, ResponseTextDeltaEvent):
                print(event.data.delta, end="", flush=True)
                num_visible_event += 1
                print(num_visible_event)
                if num_visible_event == 3:
                    result.cancel()
    
    
    if __name__ == "__main__":
        asyncio.run(main())
    ````
    handrew authored Apr 23, 2025
    Configuration menu
    Copy the full SHA
    a113fea View commit details
    Browse the repository at this point in the history

Commits on Apr 24, 2025

  1. Create to_json_dict for ModelSettings (#582)

    Now that `ModelSettings` has `Reasoning`, a non-primitive object,
    `dataclasses.as_dict()` wont work. It will raise an error when you try
    to serialize (e.g. for tracing). This ensures the object is actually
    serializable.
    rm-openai authored Apr 24, 2025
    Configuration menu
    Copy the full SHA
    3755ea8 View commit details
    Browse the repository at this point in the history
  2. Prevent MCP ClientSession hang (#580)

    Per
    https://modelcontextprotocol.io/specification/draft/basic/lifecycle#timeouts
    
    "Implementations SHOULD establish timeouts for all sent requests, to
    prevent hung connections and resource exhaustion. When the request has
    not received a success or error response within the timeout period, the
    sender SHOULD issue a cancellation notification for that request and
    stop waiting for a response.
    
    SDKs and other middleware SHOULD allow these timeouts to be configured
    on a per-request basis."
    
    I picked 5 seconds since that's the default for SSE
    njbrake authored Apr 24, 2025
    Configuration menu
    Copy the full SHA
    af80e3a View commit details
    Browse the repository at this point in the history
  3. Fix stream error using LiteLLM (#589)

    In response to issue #587 , I implemented a solution to first check if
    `refusal` and `usage` attributes exist in the `delta` object.
    
    I added a unit test similar to `test_openai_chatcompletions_stream.py`.
    
    Let me know if I should change something.
    
    ---------
    
    Co-authored-by: Rohan Mehta <[email protected]>
    DanieleMorotti and rm-openai authored Apr 24, 2025
    Configuration menu
    Copy the full SHA
    e11b822 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    45eb41f View commit details
    Browse the repository at this point in the history
  5. v0.0.13 (#593)

    rm-openai authored Apr 24, 2025
    Configuration menu
    Copy the full SHA
    3bbc7c4 View commit details
    Browse the repository at this point in the history
Loading