Skip to main content

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


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_autogpt-0.1.1.tar.gz (6.1 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_autogpt-0.1.1-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file ati_integrations_autogpt-0.1.1.tar.gz.

File metadata

File hashes

Hashes for ati_integrations_autogpt-0.1.1.tar.gz
Algorithm Hash digest
SHA256 450c1ccccf70a2ad7ccb4e4f237a1c151a1f364e702310c75fcbc9da05b61495
MD5 5cffbb2cfa48c122becdb54ba03aa123
BLAKE2b-256 1ef311faffdaf8fe18afa266165493ee63d05cce52de434be73e45da75459d16

See more details on using hashes here.

File details

Details for the file ati_integrations_autogpt-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for ati_integrations_autogpt-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cc4a4a3ed5982b45201cb88bb881498c5b3a6009395e82909a6672a010fdf6ea
MD5 ea6aa1deb6b2efeab8edfc336eadc267
BLAKE2b-256 6296d684df2cf35e25793e551da1b462080d6f01bfc23f3fa3961fa5dd8caf78

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