Skip to content

Update ag2 version to 0.8.4 and add support for new version#654

Merged
davorrunje merged 19 commits into
mainfrom
update-ag2-version
Mar 31, 2025
Merged

Update ag2 version to 0.8.4 and add support for new version#654
davorrunje merged 19 commits into
mainfrom
update-ag2-version

Conversation

@kumaranvpl
Copy link
Copy Markdown
Contributor

Description

Fixes #653

Type of change

  • Documentation (typos, code examples, or any documentation updates)
  • Bug fix (a non-breaking change that resolves an issue)
  • New feature (a non-breaking change that adds functionality)
  • Breaking change (a fix or feature that would disrupt existing functionality)
  • This change requires a documentation update

Checklist

  • I have conducted a self-review of my own code
  • I have made the necessary changes to the documentation
  • My changes do not generate any new warnings
  • I have added tests to validate the effectiveness of my fix or the functionality of my new feature
  • I have included code examples to illustrate the modifications

@kumaranvpl kumaranvpl requested a review from davorrunje March 31, 2025 13:25
@kumaranvpl kumaranvpl marked this pull request as draft March 31, 2025 13:25
@kumaranvpl kumaranvpl changed the title Update ag2 version Update ag2 version to 0.8.4 and add support for new version Mar 31, 2025
@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 31, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Files with missing lines Coverage Δ
fastagency/runtimes/ag2/agents/websurfer.py 100.00% <ø> (ø)
fastagency/runtimes/ag2/agents/whatsapp.py 50.00% <ø> (ø)
fastagency/runtimes/ag2/tools/websurfer.py 82.85% <ø> (ø)

... and 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@davorrunje davorrunje added this pull request to the merge queue Mar 31, 2025
@kumaranvpl kumaranvpl requested a review from Copilot March 31, 2025 14:11
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR upgrades the ag2 dependency from version 0.8.1 to 0.8.4 and updates test and agent type annotations to use LLMConfig instead of dicts.

  • Upgrade ag2 dependency and update version strings.
  • Replace type hints for LLM configurations in tests, agents, and tools from dict[str, Any] to LLMConfig.
  • Adjust error handling in test cases to align with pydantic ValidationError messages.

Reviewed Changes

Copilot reviewed 13 out of 13 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tests/runtime/ag2/tools/test_whatsapp.py Updated type hints for LLM config in test functions.
tests/runtime/ag2/tools/test_web_surfer.py Updated type hints and error exception from ValueError to ValidationError.
tests/runtime/ag2/test_autogen.py Modified function signatures to use LLMConfig.
tests/conftest.py Changed fixture return types to LLMConfig and modified azure_model_llm_config accordingly.
tests/api/openapi/* Updated type hints for LLM config in various API endpoint tests.
pyproject.toml Upgraded the ag2 dependency version.
fastagency/runtimes/ag2/* Updated type hints for LLM configurations in tools and agents.
fastagency/about.py Updated package version to 0.8.4.
Comments suppressed due to low confidence (1)

tests/runtime/ag2/tools/test_web_surfer.py:24

  • The test now expects a 'ValidationError' with match 'Field required'. However, pydantic's error messages can include additional detail. Consider using a more flexible regex (e.g. ".required.") to avoid brittle tests if the message format changes slightly.
ValidationError,

Merged via the queue into main with commit c7bec52 Mar 31, 2025
24 checks passed
@davorrunje davorrunje deleted the update-ag2-version branch March 31, 2025 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature: Add support for ag2 version > 0.8.2 where LLMConfig is introduced

3 participants