Skip to content

Latest commit

 

History

History
65 lines (42 loc) · 2.57 KB

File metadata and controls

65 lines (42 loc) · 2.57 KB

Botanu SDK Documentation

Botanu SDK provides OpenTelemetry-native run-level cost attribution for AI workflows.

Overview

Traditional observability tools trace individual requests. But AI workflows are different — a single business outcome (resolving a support ticket, processing an order) might span multiple LLM calls, retries, tool executions, and data operations across different vendors.

Botanu introduces run-level attribution: a unique run_id that follows your entire workflow, enabling you to answer "How much did this outcome cost?"

Documentation

Getting Started

Core Concepts

Tracking

  • LLM Tracking - Track AI model calls and token usage
  • Data Tracking - Track database, storage, and messaging operations
  • Outcomes - Record business outcomes for ROI calculation

Integration

Patterns

API Reference

Quick Example

from botanu import enable, botanu_use_case

enable(service_name="my-service")

@botanu_use_case(name="my_workflow")
def my_function():
    data = db.query(...)
    result = llm.complete(...)
    return result

License

Apache License 2.0. See LICENSE.