Skip to main content

ATI AutoGen integration: message/tool/turn events -> ATI spans

Project description

ATI Integration for AutoGen

This package provides OpenTelemetry instrumentation for AutoGen agents using IOcane ATI.

Installation

pip install ati-integrations-autogen

Usage

from ati_autogen import AutoGenInstrumentor
import autogen

# 1. Enable Instrumentation
# This wraps BaseChatAgent.on_messages and BaseTool.run
instrumentor = AutoGenInstrumentor()
instrumentor.instrument()

# 2. Run AutoGen agents
config_list = [{"model": "gpt-4", "api_key": "..."}]
assistant = autogen.AssistantAgent("assistant", llm_config={"config_list": config_list})
user_proxy = autogen.UserProxyAgent("user_proxy")

user_proxy.initiate_chat(assistant, message="Hello!")

# 3. (Optional) Uninstrument
instrumentor.uninstrument()

Configuration

Configure the instrumentation via environment variables:

Variable Description Default
ATI_CAPTURE_PAYLOADS Capture message content and tool arguments false

Features

  • Captures Agent replies (ati.span.type=agent)
  • Captures Tool usage (ati.span.type=tool)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ati_integrations_autogen-0.1.0.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ati_integrations_autogen-0.1.0-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file ati_integrations_autogen-0.1.0.tar.gz.

File metadata

File hashes

Hashes for ati_integrations_autogen-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d6b71a43f7e8aa54dfd4777922a01b1105dfe59d0ceb505aae8b4bf14a1d008c
MD5 b48096eaaeda35863dc26afe7aa07961
BLAKE2b-256 922f62a98c55483a4679a3fe4bf6a18eb58c809e02a7d0329bc4f2596139a706

See more details on using hashes here.

File details

Details for the file ati_integrations_autogen-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ati_integrations_autogen-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c9061fe01235e6eaa62182ddee5d83847ca267da1a9200578f253b3dc80a55d9
MD5 e2800cb155eb5bf30934ef5c72a3b8fe
BLAKE2b-256 beba30b8a617461a717b1b3a561c5245fbb9d8e0739da03c36c3c850fc1f9f01

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page