Add AutoGen (AG2) framework adapter#13
Open
champ18ion wants to merge 1 commit into
Open
Conversation
Adds src/aastf/harness/adapters/autogen.py implementing the standard adapter contract (run_scenario -> AgentTrace), following the pattern of the PydanticAI/CrewAI adapters: tools are wrapped with @Instrument and tool calls are captured into the active TraceCollector via contextvars, requiring no monkeypatching of AutoGen internals. - New 'autogen' optional extra (autogen-agentchat>=0.4) in pyproject.toml - Wired into runner._build_harness as the 'autogen' adapter - Unit tests covering import guarding, _build_input, _extract_final_output, and error handling for malformed factories - docs/quickstart.md updated with install instructions and adapter table
Owner
|
@copilot resolve the merge conflicts in this pull request |
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.
Adds an AutoGen (AG2) adapter following the existing PydanticAI/CrewAI
pattern: agent factory tools are wrapped with @Instrument so tool calls
are captured into the active TraceCollector via contextvars, with no
need to monkeypatch AutoGen internals.
added to the 'all' extra
_build_input, _extract_final_output, and error handling for malformed
factories
Type of change: New / updated framework adapter
Related issues: Closes #12
Checklist: all checked —> ruff check src/ tests/ passes, pytest tests/unit/ -v passes (2967 passed), tests added for the new adapter, docs updated, no secrets included.