Skip to content

[Adapter] AutoGen #12

Description

@champ18ion

Framework Name

AutoGen (AG2)

Framework Version

autogen-agentchat>=0.4 (the actively maintained AG2 fork; will confirm package naming with maintainers since both pyautogen and autogen-agentchat exist)

Proposed Instrumentation Approach

AutoGen agents (AssistantAgent, etc.) accept tools as plain Python
callables/FunctionTool objects registered at construction time. Following
the pattern used in the CrewAI and generic adapters, tools passed to the
agent factory will be wrapped with the existing @Instrument decorator from
harness/adapters/generic.py before being registered, so each tool call is
captured by the TraceCollector via contextvars — no monkeypatching of
AutoGen internals required.

AutoGen's run loop is async-native (run_stream / Console), so unlike
CrewAI's sync Crew.kickoff(), no thread-pool wrapping should be needed.

A toy AssistantAgent with AASTF-instrumented tools will be used for
integration tests, following examples/test_mock_agent.py as a template.

Commitment

  • I am claiming this adapter (please assign the issue to me)
  • I have reviewed the LangGraph adapter as reference implementation
  • I can write integration tests using a toy agent

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions