Python APIautogen

Core

Instrumentation

Python · Instrumentation

openinference-instrumentation-autogen

Deprecated compatibility package for OpenInference AG2 instrumentation

Module
openinference.instrumentation.autogen
Version
0.1.16
Python
>=3.10, <3.16
Instruments
autogen>=0.5.0,<1.0.0

Install

pip install openinference-instrumentation-autogen

openinference.instrumentation.autogen

Deprecated compatibility layer over the AG2 instrumentation.

AutogenInstrumentor

classSource ↗
class AutogenInstrumentor()

Compatibility facade for the legacy autogen distribution.

Attributes

NameType and value
is_instrumented_by_opentelemetrybool

instrument

methodSource ↗
def instrument(**kwargs: Any = {}) -> AutogenInstrumentor

uninstrument

methodSource ↗
def uninstrument(**kwargs: Any = {}) -> AutogenInstrumentor

SpanAttributes

classSource ↗
class SpanAttributes

Deprecated: legacy attribute keys kept for backward compatibility.

Attributes

NameType and value
OPENINFERENCE_SPAN_KINDstr = 'openinference.span.kind'
INPUT_VALUEstr = 'input.value'
INPUT_MIME_TYPEstr = 'input.mime_type'
OUTPUT_VALUEstr = 'output.value'
OUTPUT_MIME_TYPEstr = 'output.mime_type'
TOOL_NAMEstr = 'tool.name'
TOOL_ARGSstr = 'tool.args'
TOOL_KWARGSstr = 'tool.kwargs'
TOOL_PARAMETERSstr = 'tool.parameters'
TOOL_CALL_FUNCTION_ARGUMENTSstr = 'tool_call.function.arguments'
TOOL_CALL_FUNCTION_NAMEstr = 'tool_call.function.name'