Update ag2 version to 0.8.4 and add support for new version#654
Merged
Conversation
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Codecov ReportAll modified and coverable lines are covered by tests ✅
... and 1 file with indirect coverage changes 🚀 New features to boost your workflow:
|
davorrunje
approved these changes
Mar 31, 2025
Contributor
There was a problem hiding this comment.
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,
davorrunje
approved these changes
Mar 31, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fixes #653
Type of change
Checklist