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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ati_integrations_autogen-0.1.0.tar.gz.
File metadata
- Download URL: ati_integrations_autogen-0.1.0.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d6b71a43f7e8aa54dfd4777922a01b1105dfe59d0ceb505aae8b4bf14a1d008c
|
|
| MD5 |
b48096eaaeda35863dc26afe7aa07961
|
|
| BLAKE2b-256 |
922f62a98c55483a4679a3fe4bf6a18eb58c809e02a7d0329bc4f2596139a706
|
File details
Details for the file ati_integrations_autogen-0.1.0-py3-none-any.whl.
File metadata
- Download URL: ati_integrations_autogen-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c9061fe01235e6eaa62182ddee5d83847ca267da1a9200578f253b3dc80a55d9
|
|
| MD5 |
e2800cb155eb5bf30934ef5c72a3b8fe
|
|
| BLAKE2b-256 |
beba30b8a617461a717b1b3a561c5245fbb9d8e0739da03c36c3c850fc1f9f01
|