ATI Integration for AutoGPT
Project description
ATI Integration for AutoGPT
This package provides OpenTelemetry instrumentation for AutoGPT-style agents using IOcane ATI.
Installation
pip install ati-integrations-autogpt opentelemetry-sdk opentelemetry-exporter-otlp
Configuration
Set the standard OpenTelemetry environment variables:
export OTEL_EXPORTER_OTLP_ENDPOINT="https://api.iocane.ai"
export OTEL_EXPORTER_OTLP_HEADERS="x-iocane-key=YOUR_KEY,x-ati-env=YOUR_ENV_ID"
export OTEL_SERVICE_NAME="my-autogpt-agent"
Usage
import os
from ati_autogpt import AutoGPTInstrumentor
from opentelemetry import trace
from opentelemetry.sdk.trace import TracerProvider
from opentelemetry.sdk.trace.export import BatchSpanProcessor
from opentelemetry.exporter.otlp.proto.http.trace_exporter import OTLPSpanExporter
# 1. Configure OpenTelemetry
provider = TracerProvider()
exporter = OTLPSpanExporter()
provider.add_span_processor(BatchSpanProcessor(exporter))
trace.set_tracer_provider(provider)
# 2. Instrument AutoGPT
instrumentor = AutoGPTInstrumentor()
instrumentor.instrument() # auto-detects Agent class
# 3. Run your Agent
# ...
# 4. Flush traces
provider.shutdown()
Configuration
Configure the instrumentation via environment variables:
| Variable | Description | Default |
|---|---|---|
ATI_CAPTURE_PAYLOADS |
Capture step inputs | false |
Features
- Captures Agent steps (
ati.span.type=step) - Identifies Loop Iterations
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_autogpt-0.1.1.tar.gz.
File metadata
- Download URL: ati_integrations_autogpt-0.1.1.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
450c1ccccf70a2ad7ccb4e4f237a1c151a1f364e702310c75fcbc9da05b61495
|
|
| MD5 |
5cffbb2cfa48c122becdb54ba03aa123
|
|
| BLAKE2b-256 |
1ef311faffdaf8fe18afa266165493ee63d05cce52de434be73e45da75459d16
|
File details
Details for the file ati_integrations_autogpt-0.1.1-py3-none-any.whl.
File metadata
- Download URL: ati_integrations_autogpt-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.6 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 |
cc4a4a3ed5982b45201cb88bb881498c5b3a6009395e82909a6672a010fdf6ea
|
|
| MD5 |
ea6aa1deb6b2efeab8edfc336eadc267
|
|
| BLAKE2b-256 |
6296d684df2cf35e25793e551da1b462080d6f01bfc23f3fa3961fa5dd8caf78
|