AutoGen is a new agent framework from Microsoft that allows for complex Agent creation. It is unique in its ability to create multiple agents that work together.
The AutoGen Agent framework allows creation of multiple agents and connection of those agents to work together to accomplish tasks. The individual prompt and responses are captured directly through OpenAI calls. This sample code can be found on the OpenAI instrumentation page.
AutoGen Auto Instrumentor is currently in beta version.
# Import open-telemetry dependenciesfrom arize.otel import register# Setup OTel via our convenience functiontracer_provider =register( space_id ="your-space-id", # in app space settings page api_key ="your-api-key", # in app space settings page project_name ="your-project-name", # name this to whatever you would like set_global_tracer_provider=True)# Import the automatic instrumentor from OpenInferencefrom openinference.instrumentation.openai import OpenAIInstrumentorfrom openinference.instrumentation.autogen import AutogenInstrumentor# Finish automatic instrumentationOpenAIInstrumentor().instrument()AutogenInstrumentor().instrument()