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: python-v0.5.6
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.5.7
Choose a head ref
  • 16 commits
  • 50 files changed
  • 12 contributors

Commits on May 2, 2025

  1. Update website 0.5.6 (#6454)

    ekzhu authored May 2, 2025
    Configuration menu
    Copy the full SHA
    085ff3d View commit details
    Browse the repository at this point in the history

Commits on May 6, 2025

  1. Add model_context to SelectorGroupChat for enhanced speaker selec…

    …tion (#6330)
    
    ## Why are these changes needed?
    This PR enhances the `SelectorGroupChat` class by introducing a new
    `model_context` parameter to support more context-aware speaker
    selection.
    
    ### Changes
    - Added a `model_context: ChatCompletionContext | None` parameter to
    `SelectorGroupChat`.
    - Defaulted to `UnboundedChatCompletionContext` when None is provided
    like `AssistantAgent`.
    - Updated `_select_speaker` to prepend context messages from
    `model_context` to the main thread history.
    - Refactored history construction into a helper method
    `construct_message_history`.
    
    ## Related issue number
    Closes [Issue #6301](https://github.com/org/repo/issues/6301), enabling
    the group chat manager to utilize `model_context` for richer, more
    informed speaker selection decisions.
    
    ## 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.
    - [x] I've added tests (if relevant) corresponding to the changes
    introduced in this PR.
    - [x] I've made sure all auto checks have passed.
    
    ---------
    
    Signed-off-by: Abhijeetsingh Meena <abhijeet040403@gmail.com>
    Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
    Ethan0456 and ekzhu authored May 6, 2025
    Configuration menu
    Copy the full SHA
    2864fbf View commit details
    Browse the repository at this point in the history
  2. Sample for integrating Core API with chainlit (#6422)

    ## Why are these changes needed?
    
    This pull request adds new samples that integrates the Autogen Core API
    with Chainlit. It closely follows the structure of the
    Agentchat+Chainlit sample and provides examples for using a single agent
    and multiple agents in a groupchat.
    ## Related issue number
    
    
    Closes: #5345
    
    ---------
    
    Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
    DavidYu00 and ekzhu authored May 6, 2025
    Configuration menu
    Copy the full SHA
    bacfa98 View commit details
    Browse the repository at this point in the history

Commits on May 7, 2025

  1. Configuration menu
    Copy the full SHA
    eba05ae View commit details
    Browse the repository at this point in the history

Commits on May 8, 2025

  1. Fix: Move the createTeam function (#6487)

    ## Related issue number
    
    Closes #6486
    xionnon authored May 8, 2025
    Configuration menu
    Copy the full SHA
    b17793e View commit details
    Browse the repository at this point in the history
  2. Update docs.yml (#6493)

    Bump python version, pin nr-utils
    
    <!-- Thank you for your contribution! Please review
    https://microsoft.github.io/autogen/docs/Contribute before opening a
    pull request. -->
    
    Fix docs build CI bug.
    - pydocmkardown depends on pydocspec 
    -[ pydocspec was updated May
    6](https://pypi.org/project/docspec-python/#history) (two days ago), and
    includes a problematic dependency (`nr.utils` which is specified as
    [nr-utils](https://github.com/NiklasRosenstein/python-docspec/blob/61d3e38c55d290da6197236357e1cdfe818d35b5/docspec-python/pyproject.toml#L14C5-L14C23).
    This caused imports to fail.
    - current fix is fixing the pydocspec version.
    - Also using the opportunity to update the python version 3.8 -> 3.9 for
    the docs build 0.2
    
    <!-- Please add a reviewer to the assignee section when you create a PR.
    If you don't have the access to it, we will shortly find a reviewer and
    assign them to your PR. -->
    
    ## Why are these changes needed?
    
    <!-- Please give a short summary of the change and the problem this
    solves. -->
    
    ## Related issue number
    
    <!-- For example: "Closes #1234" -->
    
    ## Checks
    
    - [ ] 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.
    - [ ] I've added tests (if relevant) corresponding to the changes
    introduced in this PR.
    - [ ] I've made sure all auto checks have passed.
    victordibia authored May 8, 2025
    Configuration menu
    Copy the full SHA
    7cc7165 View commit details
    Browse the repository at this point in the history

Commits on May 9, 2025

  1. Add gpt 4o search (#6492)

    <!-- Thank you for your contribution! Please review
    https://microsoft.github.io/autogen/docs/Contribute before opening a
    pull request. -->
    
    Add gpt 4o search models to list of default models
    
    ```python
    "gpt-4o-mini-search-preview-2025-03-11": {
            "vision": False,
            "function_calling": True,
            "json_output": True,
            "family": ModelFamily.GPT_4O,
            "structured_output": True,
            "multiple_system_messages": True,
        },
    "gpt-4o-search-preview-2025-03-11": {
            "vision": False,
            "function_calling": True,
            "json_output": True,
            "family": ModelFamily.GPT_4O,
            "structured_output": True,
            "multiple_system_messages": True,
        },
    ```
    
    <!-- Please add a reviewer to the assignee section when you create a PR.
    If you don't have the access to it, we will shortly find a reviewer and
    assign them to your PR. -->
    
    ## Why are these changes needed?
    
    <!-- Please give a short summary of the change and the problem this
    solves. -->
    
    ## Related issue number
    
    <!-- For example: "Closes #1234" -->
    
    Closes #6491
    
    ## Checks
    
    - [ ] 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.
    - [ ] I've added tests (if relevant) corresponding to the changes
    introduced in this PR.
    - [ ] I've made sure all auto checks have passed.
    victordibia authored May 9, 2025
    Configuration menu
    Copy the full SHA
    1ab2441 View commit details
    Browse the repository at this point in the history
  2. Fix header icons focus and hover style for better accessibility (#6409)

    ## Why are these changes needed?
    
    This PR improves keyboard accessibility by ensuring that header
    links/icons have visual feedback (underline and color change) on both
    hover and keyboard focus states. Also adds smooth scaling animation.
    
    ## Related issue number
    
    Related issue: #6090 
    
    ## Checks
    
    - [☑️] 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.
    - [☑️] I've added tests (if relevant) corresponding to the changes
    introduced in this PR.
    - [☑️] I've made sure all auto checks have passed.
    
    Co-authored-by: peterychang <49209570+peterychang@users.noreply.github.com>
    AndreaTang123 and peterychang authored May 9, 2025
    Configuration menu
    Copy the full SHA
    356ec34 View commit details
    Browse the repository at this point in the history
  3. improve Otel tracing (#6499)

    <!-- Thank you for your contribution! Please review
    https://microsoft.github.io/autogen/docs/Contribute before opening a
    pull request. -->
    
    <!-- Please add a reviewer to the assignee section when you create a PR.
    If you don't have the access to it, we will shortly find a reviewer and
    assign them to your PR. -->
    
    ## Why are these changes needed?
    
    Will the changes made in
    https://github.com/microsoft/autogen/pull/5853/files and this PR need to
    be ported to the worker_runtime as well?
    Resolves #5894
    
    ## Related issue number
    
    #5894
    
    ## Checks
    
    - [ ] 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.
    - [ ] I've added tests (if relevant) corresponding to the changes
    introduced in this PR.
    - [ ] I've made sure all auto checks have passed.
    peterychang authored May 9, 2025
    Configuration menu
    Copy the full SHA
    3db7a29 View commit details
    Browse the repository at this point in the history

Commits on May 10, 2025

  1. Fix AnthropicBedrockChatCompletionClient import error (#6489)

    <!-- Thank you for your contribution! Please review
    https://microsoft.github.io/autogen/docs/Contribute before opening a
    pull request. -->
    
    Some fixes with the AnthropicBedrockChatCompletionClient 
    
    - Ensure `AnthropicBedrockChatCompletionClient` exported and can be
    imported.
    - Update the BedrockInfo keys serialization - client argument can be
    string (similar to api key in this ) but exported config should be
    Secret
    - Replace `AnthropicBedrock` with `AsyncAnthropicBedrock` : client
    should be async to work with the ag stack and the BaseAnthropicClient it
    inherits from
    - Improve `AnthropicBedrockChatCompletionClient` docstring to use the
    correct client arguments rather than serialized dict format.
    
    Expect
    
    ```python
    from autogen_ext.models.anthropic import AnthropicBedrockChatCompletionClient, BedrockInfo
    from autogen_core.models import UserMessage, ModelInfo
    
    
    async def main():
        anthropic_client = AnthropicBedrockChatCompletionClient(
            model="anthropic.claude-3-5-sonnet-20240620-v1:0",
            temperature=0.1,
            model_info=ModelInfo(vision=False, function_calling=True,
                                 json_output=False, family="unknown", structured_output=True),
            bedrock_info=BedrockInfo(
                aws_access_key="<aws_access_key>",
                aws_secret_key="<aws_secret_key>",
                aws_session_token="<aws_session_token>",
                aws_region="<aws_region>",
            ),
        )
        # type: ignore
        result = await anthropic_client.create([UserMessage(content="What is the capital of France?", source="user")])
        print(result)
    
    await main()
    ```
    
    <!-- Please add a reviewer to the assignee section when you create a PR.
    If you don't have the access to it, we will shortly find a reviewer and
    assign them to your PR. -->
    
    ## Why are these changes needed?
    
    <!-- Please give a short summary of the change and the problem this
    solves. -->
    
    ## Related issue number
    
    <!-- For example: "Closes #1234" -->
    
    Closes #6483 
    
    ## Checks
    
    - [ ] 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.
    - [ ] I've added tests (if relevant) corresponding to the changes
    introduced in this PR.
    - [ ] I've made sure all auto checks have passed.
    
    ---------
    
    Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
    victordibia and ekzhu authored May 10, 2025
    Configuration menu
    Copy the full SHA
    6427c07 View commit details
    Browse the repository at this point in the history

Commits on May 12, 2025

  1. fix/mcp_session_auto_close_when_Mcpworkbench_deleted (#6497)

    <!-- Thank you for your contribution! Please review
    https://microsoft.github.io/autogen/docs/Contribute before opening a
    pull request. -->
    
    <!-- Please add a reviewer to the assignee section when you create a PR.
    If you don't have the access to it, we will shortly find a reviewer and
    assign them to your PR. -->
    
    ## Why are these changes needed?
    As-is: Deleting `McpWorkbench` does not close the `McpSession`.  
    To-be: Deleting `McpWorkbench` now properly closes the `McpSession`.
    
    <!-- Please give a short summary of the change and the problem this
    solves. -->
    
    ## Related issue number
    
    <!-- For example: "Closes #1234" -->
    
    ## Checks
    
    - [ ] 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.
    - [x] I've added tests (if relevant) corresponding to the changes
    introduced in this PR.
    - [x] I've made sure all auto checks have passed.
    SongChiYoung authored May 12, 2025
    Configuration menu
    Copy the full SHA
    c26d894 View commit details
    Browse the repository at this point in the history
  2. Add ability to register Agent instances (#6131)

    <!-- Thank you for your contribution! Please review
    https://microsoft.github.io/autogen/docs/Contribute before opening a
    pull request. -->
    
    <!-- Please add a reviewer to the assignee section when you create a PR.
    If you don't have the access to it, we will shortly find a reviewer and
    assign them to your PR. -->
    
    ## Why are these changes needed?
    
    Nice to have functionality
    
    ## Related issue number
    
    Closes #6060 
    
    ## 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.
    - [x] I've added tests (if relevant) corresponding to the changes
    introduced in this PR.
    - [x] I've made sure all auto checks have passed.
    
    ---------
    
    Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
    peterychang and ekzhu authored May 12, 2025
    Configuration menu
    Copy the full SHA
    9118f9b View commit details
    Browse the repository at this point in the history
  3. fixes the issues where exceptions from MCP server tools aren't serial… (

    #6482)
    
    …ized properly
    
    ## Why are these changes needed?
    The exceptions thrown by MCP server tools weren't being serialized
    properly - the user would see `[{}, {}, ... {}]` instead of an actual
    error/exception message.
    
    ## Related issue number
    
    Fixes #6481 
    
    ## Checks
    
    - [ ] 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.
    - [x] I've added tests (if relevant) corresponding to the changes
    introduced in this PR.
    - [x] I've made sure all auto checks have passed.
    
    ---------
    
    Signed-off-by: Peter Jausovec <peter.jausovec@solo.io>
    Co-authored-by: Victor Dibia <victordibia@microsoft.com>
    Co-authored-by: Victor Dibia <victor.dibia@gmail.com>
    3 people authored May 12, 2025
    Configuration menu
    Copy the full SHA
    867194a View commit details
    Browse the repository at this point in the history

Commits on May 13, 2025

  1. Update version 0.5.7 (#6518)

    ekzhu authored May 13, 2025
    Configuration menu
    Copy the full SHA
    177211b View commit details
    Browse the repository at this point in the history
  2. FIX/mistral could not recive name field (#6503)

    ## Why are these changes needed?
    FIX/mistral could not recive name field, so add model transformer for
    mistral
    
    ## Related issue number
    Closes #6147
    
    ## Checks
    
    - [ ] 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.
    - [x] I've added tests (if relevant) corresponding to the changes
    introduced in this PR.
    - [x] I've made sure all auto checks have passed.
    
    Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
    SongChiYoung and ekzhu authored May 13, 2025
    Configuration menu
    Copy the full SHA
    978cbd2 View commit details
    Browse the repository at this point in the history
  3. Simplify Azure Ai Search Tool (#6511)

    ## Why are these changes needed?
    
    Simplified the azure ai search tool and fixed bugs in the code
    
    
    ## Related issue number
    
    "Closes #6430 " 
    
    ## 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.
    - [X] I've added tests (if relevant) corresponding to the changes
    introduced in this PR.
    - [X] I've made sure all auto checks have passed.
    
    Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
    jay-thakur and ekzhu authored May 13, 2025
    Configuration menu
    Copy the full SHA
    87cf4f0 View commit details
    Browse the repository at this point in the history
Loading