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: microsoft/autogen
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: microsoft/autogen
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: python-v0.4.9.3
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 12 commits
  • 21 files changed
  • 7 contributors

Commits on Mar 14, 2025

  1. bugfix: Workaround for pydantic/#7713 (#5893)

    Use of `SKChatCompletionAdapter` reliably fails with "'MockValSer'
    object cannot be converted to 'SchemaSerializer'"; can repro with this
    example:
    https://microsoft.github.io/autogen/stable/user-guide/core-user-guide/components/model-clients.html#semantic-kernel-adapter
    
    This appears to be related to
    pydantic/pydantic#7713 - commit uses
    workaround from
    pydantic/pydantic#7713 (comment)
    
    ## Why are these changes needed?
    
    This unblocks use of the Semantic Kernel integration by addressing the
    above-referenced error, enabling the integration to perform as expected.
    
    ## Related issue number
    
    N/A, see pydantic/pydantic#7713 for context,
    though.
    
    ## Checks
    
    - [X] I've included any doc changes needed for
    <https://microsoft.github.io/autogen/>. See
    <https://github.com/microsoft/autogen/blob/main/CONTRIBUTING.md> to
    build and test documentation locally.
     - None needed, internal only change.
    - [ ] I've added tests (if relevant) corresponding to the changes
    introduced in this PR.
    - None added; this works on my machine, but I'm not clear on the root
    cause of the issue and have no strong opinion on whether this is the
    ideal way to fix it long term - simply leaning towards PR`ing a tenative
    fix instead of raising an issue.
    - [ ] I've made sure all auto checks have passed.
     - I am not familiar with these, but assume they will be run during CI.
    
    ---------
    
    Co-authored-by: Leonardo Pinheiro <[email protected]>
    Co-authored-by: Eric Zhu <[email protected]>
    3 people committed Mar 14, 2025
    Configuration menu
    Copy the full SHA
    e8a0b98 View commit details
    Browse the repository at this point in the history
  2. Fix logging error with ollama client (#5917)

    Resolves #5910
    
    Co-authored-by: peterychang <[email protected]>
    ekzhu and peterychang committed Mar 14, 2025
    Configuration menu
    Copy the full SHA
    997ad60 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    904cb0f View commit details
    Browse the repository at this point in the history
  4. Fixes an error that can occur when listing the contents of a director…

    …y. (#5938)
    
    Fixes issues like the following trace:
    
    ```
    packages/autogen_ext/agents/file_surfer/_markdown_file_browser.py", line 39, in __init__
        self.set_path(self._base_path)
      File "/home/hmozannar/webby/.venv/lib/python3.12/site-packages/autogen_ext/agents/file_surfer/_markdown_file_browser.py", line 67, in set_path
        self._open_path(path)
      File "/home/hmozannar/webby/.venv/lib/python3.12/site-packages/autogen_ext/agents/file_surfer/_markdown_file_browser.py", line 210, in _open_path
        io.StringIO(self._fetch_local_dir(path)), file_extension=".txt"
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/home/hmozannar/webby/.venv/lib/python3.12/site-packages/autogen_ext/agents/file_surfer/_markdown_file_browser.py", line 248, in _fetch_local_dir
        mtime = datetime.datetime.fromtimestamp(os.path.getmtime(full_path)).strftime("%Y-%m-%d %H:%M")
                                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "<frozen genericpath>", line 67, in getmtime
    PermissionError: [Errno 13] Permission denied: '/home/hmozannar/webby/autogen-studio/frontend/readme.txt'
    ```
    afourney authored and ekzhu committed Mar 14, 2025
    Configuration menu
    Copy the full SHA
    48c02de View commit details
    Browse the repository at this point in the history
  5. Use SecretStr type for api key (#5939)

    To prevent accidental export of API keys
    ekzhu committed Mar 14, 2025
    Configuration menu
    Copy the full SHA
    615882c View commit details
    Browse the repository at this point in the history
  6. update version to v0.4.9.1

    ekzhu committed Mar 14, 2025
    Configuration menu
    Copy the full SHA
    27fd76d View commit details
    Browse the repository at this point in the history
  7. Ensure SecretStr is cast to str on load for model clients (#5947)

    Currently we have SecretStr type for model clients to promote security
    best practices.
    
    - when we dump_component, keys are serialized  as SecreteStr ..
    - when we load_component ... SecreteStr type is passed to the client in
    the api_key field. This i causes the type problems as the clients expect
    a string type.
    
    This PR updates the from_config method for model clients to ensure we
    get the value from SecretStr.
    
    Closes #5944
    victordibia authored and ekzhu committed Mar 14, 2025
    Configuration menu
    Copy the full SHA
    a881cf1 View commit details
    Browse the repository at this point in the history
  8. update version

    ekzhu committed Mar 14, 2025
    Configuration menu
    Copy the full SHA
    7ed067a View commit details
    Browse the repository at this point in the history
  9. Upgrade llama cpp to 0.3.8 to fix windows related error (#5948)

    use the latest version of llama-cpp-python to ensure `uv sync
    --all-extras` don't fail on windows.
    
    reference:
    #5942 (comment)
    ekzhu committed Mar 14, 2025
    Configuration menu
    Copy the full SHA
    4a1660f View commit details
    Browse the repository at this point in the history

Commits on Mar 29, 2025

  1. add read timeout for create_mcp_server_session (#6080)

    Closes #6031 
    
    ---------
    
    Co-authored-by: Eric Zhu <[email protected]>
    Septa2112 and ekzhu committed Mar 29, 2025
    Configuration menu
    Copy the full SHA
    e97f84c View commit details
    Browse the repository at this point in the history
  2. Fix MCP tool bug by dropping unset parameters from input (#6125)

    Resolves #6096
    
    Additionally: make sure MCP errors are formatted correctly, added unit
    tests for mcp servers and upgrade mcp version.
    ekzhu committed Mar 29, 2025
    Configuration menu
    Copy the full SHA
    307c6be View commit details
    Browse the repository at this point in the history
  3. update version v0.4.9.3

    ekzhu committed Mar 29, 2025
    Configuration menu
    Copy the full SHA
    e45a157 View commit details
    Browse the repository at this point in the history
Loading