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 dependencies
from arize.otel import register
# Setup OTel via our convenience function
tracer_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 OpenInference
from openinference.instrumentation.openai import OpenAIInstrumentor
from openinference.instrumentation.autogen import AutogenInstrumentor
# Finish automatic instrumentation
OpenAIInstrumentor().instrument()
AutogenInstrumentor().instrument()