> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fiddler.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# SDK & API Overview

Complete SDK documentation and REST API reference for Fiddler AI Observability Platform.

## Choose Your SDK

Fiddler has SDKs for Python and for TypeScript and JavaScript, and a REST API that works from any language.

| Your Use Case | Language | Recommended SDK |
| - | - | - |
| **Monitor ML/LLM models and platform admin** | Python | [Python Client SDK](https://docs.fiddler.ai/sdk-api/python-client/connection.md) |
| **Evaluate and test LLM outputs** | Python | [Fiddler Evals SDK](https://docs.fiddler.ai/sdk-api/evals/evaluate.md) |
| **Instrument any Python LLM/agent app** | Python | [Fiddler OTel SDK](https://docs.fiddler.ai/sdk-api/otel/fiddler-client.md) |
| **Monitor LangGraph (Python) agents** | Python | [Fiddler LangGraph SDK](https://docs.fiddler.ai/sdk-api/langgraph/fiddler-client.md) |
| **Monitor LangChain (Python) agents** | Python | [Fiddler LangChain SDK](https://docs.fiddler.ai/sdk-api/langchain/fiddler-lang-chain-instrumentor.md) |
| **Monitor Google ADK agents** | Python | [Fiddler Google ADK SDK](https://docs.fiddler.ai/sdk-api/adk/google-adk-instrumentor.md) |
| **Monitor Strands agents** | Python | [Fiddler Strands Agent SDK](https://docs.fiddler.ai/sdk-api/strands/strands-agent-instrumentor.md) |
| **Instrument any TypeScript/JS app** | TypeScript or JavaScript | [Fiddler OTel JS SDK](https://docs.fiddler.ai/sdk-api/otel-js/fiddler-client.md) |
| **Monitor LangGraph JS apps** | TypeScript or JavaScript | [Fiddler LangGraph JS SDK](https://docs.fiddler.ai/sdk-api/langgraph-js/lang-graph-instrumentor.md) |
| **Monitor LangChain JS apps** | TypeScript or JavaScript | [Fiddler LangChain JS SDK](https://docs.fiddler.ai/sdk-api/langchain-js/lang-chain-instrumentor.md) |
| **Language-agnostic HTTP integration** | Any (HTTP) | [REST API](https://docs.fiddler.ai/sdk-api/rest-api) |

The current Fiddler Python client (`fiddler-client`) requires Python 3.11 or newer. See [Python Version Support Policy](https://docs.fiddler.ai/reference/python-support-policy.md), [Python Client Compatibility](https://docs.fiddler.ai/changelog/compatibility-matrix.md), and the [Fiddler Python Client SDK](https://docs.fiddler.ai/changelog/python-sdk.md) release notes.

> [card] [REST API](https://docs.fiddler.ai/sdk-api/rest-api)
>
> Every operation in the public Fiddler REST API, grouped by resource.

> [card] [Authentication and API Keys](https://docs.fiddler.ai/sdk-api/authentication-and-api-keys.md)
>
> Create an API key, send it in the Authorization header, and fix 401 and 403 errors.

> [card] [Guardrails API Reference](https://docs.fiddler.ai/sdk-api/guardrails-api-reference.md)
>
> Rate limits, the fields each guardrail check returns, and error codes.

> [card] [Changelog Overview](https://docs.fiddler.ai/changelog.md)
>
> Release notes for the Fiddler platform and every SDK.

## 🐍 Python Client SDK

### [Fiddler Python Client SDK](https://docs.fiddler.ai/sdk-api/python-client/connection.md)

Official Python SDK for comprehensive ML and LLM observability - monitor traditional ML models and LLM applications.

**Key Features:**

* Model onboarding and schema definition
* Production event publishing (batch and streaming)
* Baseline dataset management
* Alert configuration
* Custom metrics and segments

**Use Cases:**

* ML model monitoring (drift, performance, data quality)
* Production data ingestion
* Creating monitoring dashboards
* Configuring alerts for model issues

[**View Full Documentation →**](https://docs.fiddler.ai/sdk-api/python-client/connection.md)

[**View Usage Guides →**](https://docs.fiddler.ai/developers/python-client-guides/installation-and-setup.md)

***

## 🎯 Agentic AI SDKs

SDKs for monitoring, evaluating, and testing LLM applications and AI agents.

### [Fiddler Evals SDK](https://docs.fiddler.ai/sdk-api/evals/evaluate.md)

Evaluate and test LLM outputs with built-in and custom metrics.

**Key Features:**

* Pre-built evaluators (faithfulness, toxicity, coherence, etc.)
* Custom evaluation functions
* Experiment tracking and comparison
* Dataset management for test sets

**Use Cases:**

* LLM output quality assessment
* A/B testing prompts and models
* Regression testing for LLM changes
* Custom evaluation metrics

**Quick Start:**

```python theme={null}
from fiddler_evals import AnswerRelevance, init

# Connect to Fiddler
init(url="https://your-org.fiddler.ai", token="your-api-key")

# Initialize evaluator. LLM-as-a-Judge evaluators require `model`.
evaluator = AnswerRelevance(
    model="openai/gpt-4o",
    credential="your-llm-credential",  # From Settings > LLM Gateway
)

# Run evaluation
score = evaluator.score(
    user_query="What is Fiddler?",
    rag_response="Fiddler is an AI observability platform.",
)
```

[**View Full Documentation →**](https://docs.fiddler.ai/sdk-api/evals/evaluate.md)

***

### [Fiddler OTel SDK](https://docs.fiddler.ai/sdk-api/otel/fiddler-client.md)

Framework-agnostic OpenTelemetry instrumentation for any Python LLM or agent application. This is the foundation the LangChain, LangGraph, and Strands SDKs build on, and the canonical source for Fiddler's span attributes and conversation tracking.

**Key Features:**

* Framework-agnostic tracing for any Python LLM or agent code
* `@trace` decorator and manual span wrappers (chain, generation, tool)
* Conversation and session attribute tracking
* Canonical Fiddler span attributes and span types
* Custom span processor and JSONL capture for offline analysis

**Use Cases:**

* Instrumenting apps not built on LangChain, LangGraph, or Strands
* Adding spans around arbitrary functions and workflows
* Shared tracing primitives across Fiddler's framework SDKs

**Quick Start:**

```python theme={null}
from fiddler_otel import FiddlerClient, trace

# Initialize once at startup (see FiddlerClient reference for options)
client = FiddlerClient()

# Capture a Fiddler span around any function
@trace
def generate_answer(question: str) -> str:
    return call_llm(question)
```

[**View Full Documentation →**](https://docs.fiddler.ai/sdk-api/otel/fiddler-client.md)

***

### [Fiddler LangGraph SDK](https://docs.fiddler.ai/sdk-api/langgraph/fiddler-client.md)

[![PyPI](https://img.shields.io/pypi/v/fiddler-langgraph)](https://pypi.org/project/fiddler-langgraph/)

Monitor LangGraph agents with distributed tracing and observability.

**Key Features:**

* Automatic LangGraph instrumentation
* Distributed tracing for agent workflows
* Span attributes for nodes and edges
* Conversation and session tracking

**Use Cases:**

* Debugging multi-step agent workflows
* Performance analysis of agent chains
* Monitoring production LangGraph applications
* Understanding agent decision paths

**Quick Start:**

```python theme={null}
from fiddler_langgraph import LangGraphInstrumentor

# Instrument your LangGraph app
instrumentor = LangGraphInstrumentor()
instrumentor.instrument()

# Your LangGraph code runs normally
# Traces are automatically sent to Fiddler
```

[**View Full Documentation →**](https://docs.fiddler.ai/sdk-api/langgraph/fiddler-client.md)

***

### [Fiddler LangChain SDK](https://docs.fiddler.ai/sdk-api/langchain/fiddler-lang-chain-instrumentor.md)

Instrument [LangChain V1](https://docs.langchain.com/oss/python/langchain/overview) agents (the `create_agent` API and middleware pattern) and export OpenTelemetry traces to Fiddler.

**Key Features:**

* Automatic instrumentation of LangChain V1 agents
* Drop-in agent middleware emitting LLM, tool, and chain spans
* Retrieval context attachment via `set_llm_context`
* Span and session attribute helpers

**Use Cases:**

* Monitoring production LangChain agents
* Debugging multi-step chains and tool calls
* Tracking retrieval context on LLM spans

**Quick Start:**

```python theme={null}
from fiddler_langchain import FiddlerLangChainInstrumentor

# Call once before creating your agents
FiddlerLangChainInstrumentor().instrument()

# Agents created with langchain.agents.create_agent are now traced
```

[**View Full Documentation →**](https://docs.fiddler.ai/sdk-api/langchain/fiddler-lang-chain-instrumentor.md)

***

### [Fiddler Google ADK SDK](https://docs.fiddler.ai/sdk-api/adk/google-adk-instrumentor.md)

[![PyPI](https://img.shields.io/pypi/v/fiddler-adk)](https://pypi.org/project/fiddler-adk/)

Instrument [Google ADK](https://github.com/google/adk-python) (Agent Development Kit) agents and export OpenTelemetry traces to Fiddler.

**Key Features:**

* Automatic instrumentation of Google ADK agents
* Fiddler tracing pipeline promoted to the global tracer provider
* Session-ID propagation across agent spans
* Builds on the Fiddler OTel SDK

**Use Cases:**

* Monitoring production Google ADK agents
* Debugging multi-step ADK agent workflows
* Session-based analysis of agent runs

**Quick Start:**

```python theme={null}
from fiddler_otel import FiddlerClient
from fiddler_adk import GoogleADKInstrumentor

# Initialize the Fiddler tracing pipeline
client = FiddlerClient(
    api_key="YOUR_KEY",
    application_id="YOUR_APP_UUID",
    url="https://your-instance.com",
)

# Enable instrumentation; ADK agents created after this are traced
GoogleADKInstrumentor(client).instrument()
```

[**View Full Documentation →**](https://docs.fiddler.ai/sdk-api/adk/google-adk-instrumentor.md)

***

### [Fiddler Strands Agent SDK](https://docs.fiddler.ai/sdk-api/strands/strands-agent-instrumentor.md)

[![PyPI](https://img.shields.io/pypi/v/fiddler-strands)](https://pypi.org/project/fiddler-strands/)

Monitor Strands Agents with native instrumentation.

**Key Features:**

* Strands Agent instrumentation
* Session and conversation tracking
* Span attributes for agent actions
* Integration with Fiddler platform

**Use Cases:**

* Monitoring Strands production agents
* Debugging Strands Agent workflows
* Tracking agent performance metrics
* Session-based analysis

**Quick Start:**

```python theme={null}
from strands.telemetry import StrandsTelemetry
from fiddler_strandsagents import StrandsAgentInstrumentor

# Set up telemetry and enable instrumentation
telemetry = StrandsTelemetry()
telemetry.setup_otlp_exporter()
StrandsAgentInstrumentor(telemetry).instrument()

# Agents created after this point are automatically traced
```

[**View Full Documentation →**](https://docs.fiddler.ai/sdk-api/strands/strands-agent-instrumentor.md)

***

### [Fiddler OTel JS SDK](https://docs.fiddler.ai/sdk-api/otel-js/fiddler-client.md)

OpenTelemetry instrumentation for Fiddler AI observability in TypeScript and JavaScript applications. Captures LLM traces, conversation context, and span attributes.

**Key Features:**

* OpenTelemetry tracing for TypeScript and JavaScript apps
* Isolated tracer provider with OTLP HTTP export to Fiddler
* Manual span helpers (agent, generation, tool)
* Span attribute and token-usage conventions

**Use Cases:**

* Instrumenting Node.js LLM and agent applications
* Capturing traces from non-LangChain TypeScript code
* Adding spans around arbitrary functions and workflows

**Quick Start:**

```typescript theme={null}
import { FiddlerClient } from '@fiddler-ai/otel';

// Initialize once at startup (see FiddlerClient reference for options)
const client = new FiddlerClient();
```

[**View Full Documentation →**](https://docs.fiddler.ai/sdk-api/otel-js/fiddler-client.md)

***

### [Fiddler LangGraph JS SDK](https://docs.fiddler.ai/sdk-api/langgraph-js/lang-graph-instrumentor.md)

OpenTelemetry-based instrumentation for LangGraph JS applications. Mirrors the Python `fiddler-langgraph` SDK API for agentic workflows.

**Key Features:**

* Automatic instrumentation of LangGraph JS via the callback manager
* Trace capture for agentic workflows
* Conversation and session attribute tracking
* LLM context helpers

**Use Cases:**

* Monitoring production LangGraph JS agents
* Debugging agent workflows in Node.js
* Conversation- and session-level analysis

**Quick Start:**

```typescript theme={null}
import { LangGraphInstrumentor } from '@fiddler-ai/langgraph';

// Instrument once at startup; LangGraph runs export to Fiddler
new LangGraphInstrumentor().instrument();
```

[**View Full Documentation →**](https://docs.fiddler.ai/sdk-api/langgraph-js/lang-graph-instrumentor.md)

***

### [Fiddler LangChain JS SDK](https://docs.fiddler.ai/sdk-api/langchain-js/lang-chain-instrumentor.md)

LangChain JS instrumentation for Fiddler AI observability. Re-exports the callback handler and instrumentor from `@fiddler-ai/langgraph` under a LangChain-branded API, with no code changes to existing chains.

**Key Features:**

* Automatic trace capture for LangChain JS applications
* No changes to existing chains
* Conversation and session attribute tracking
* LLM context helpers

**Use Cases:**

* Monitoring production LangChain JS applications
* Adding observability to existing chains
* Conversation- and session-level analysis

**Quick Start:**

```typescript theme={null}
import { LangChainInstrumentor } from '@fiddler-ai/langchain';

// Instrument once; existing chains are traced with no further changes
new LangChainInstrumentor().instrument();
```

[**View Full Documentation →**](https://docs.fiddler.ai/sdk-api/langchain-js/lang-chain-instrumentor.md)

***

## 🌐 REST API

### [REST API Reference](https://docs.fiddler.ai/sdk-api/rest-api)

Complete HTTP API documentation for programmatic access to the Fiddler platform.

**Use Cases:**

* Non-Python integrations (Java, Go, JavaScript, etc.)
* Custom CI/CD pipelines
* Integration with existing monitoring systems
* Webhook-based automation

**Quick Start (cURL):**

```bash theme={null}
# Publish events to Fiddler (see the Events reference for the body schema)
curl -X POST https://your-instance.fiddler.ai/v3/events \
  -H "Authorization: Bearer fid_..." \
  -H "Content-Type: application/json" \
  -d @events.json
```

[**View Full REST API Documentation →**](https://docs.fiddler.ai/sdk-api/rest-api)

**API Guides:**

* [Alert Rules](https://docs.fiddler.ai/sdk-api/rest-api/alert-rules)
* [Applications](https://docs.fiddler.ai/sdk-api/rest-api/applications)
* [Baselines](https://docs.fiddler.ai/sdk-api/rest-api/baseline)
* [Custom Metrics](https://docs.fiddler.ai/sdk-api/rest-api/custom-metrics)
* [Environments](https://docs.fiddler.ai/sdk-api/rest-api/environment)
* [Evals](https://docs.fiddler.ai/sdk-api/rest-api/evals)
* [Evaluation](https://docs.fiddler.ai/sdk-api/rest-api/evaluation)
* [Evaluator Rules](https://docs.fiddler.ai/sdk-api/rest-api/evaluator-rules)
* [Evaluators](https://docs.fiddler.ai/sdk-api/rest-api/evaluators)
* [Events](https://docs.fiddler.ai/sdk-api/rest-api/events)
* [Experiments](https://docs.fiddler.ai/sdk-api/rest-api/experiments)
* [File Upload](https://docs.fiddler.ai/sdk-api/rest-api/file-upload)
* [FQL Expressions](https://docs.fiddler.ai/sdk-api/rest-api/fql-expressions)
* [GenAI Alert Rules](https://docs.fiddler.ai/sdk-api/rest-api/genai-alert-rules)
* [Jobs](https://docs.fiddler.ai/sdk-api/rest-api/jobs)
* [LLM Gateway](https://docs.fiddler.ai/sdk-api/rest-api/llm-gateway)
* [Models](https://docs.fiddler.ai/sdk-api/rest-api/model)
* [Projects](https://docs.fiddler.ai/sdk-api/rest-api/projects)
* [Queries](https://docs.fiddler.ai/sdk-api/rest-api/queries)
* [Scores](https://docs.fiddler.ai/sdk-api/rest-api/scores)
* [Segments](https://docs.fiddler.ai/sdk-api/rest-api/segments)
* [Server Info](https://docs.fiddler.ai/sdk-api/rest-api/server-info)
* [Sessions](https://docs.fiddler.ai/sdk-api/rest-api/sessions)
* [Spans](https://docs.fiddler.ai/sdk-api/rest-api/spans)
* [Traces](https://docs.fiddler.ai/sdk-api/rest-api/traces)
* [User Access Keys](https://docs.fiddler.ai/sdk-api/rest-api/user-access-keys)
* [Users](https://docs.fiddler.ai/sdk-api/rest-api/users)

### [Guardrails API Reference](https://docs.fiddler.ai/sdk-api/guardrails-api-reference.md)

API endpoints for Fiddler guardrails.

***

## 🚀 Getting Started

### Installation

**Python SDKs:**

```bash theme={null}
# Python Client SDK
pip install fiddler-client

# Evals SDK
pip install fiddler-evals

# OTel SDK (framework-agnostic instrumentation)
pip install fiddler-otel

# LangGraph SDK
pip install fiddler-langgraph

# LangChain SDK
pip install fiddler-langchain

# Google ADK SDK
pip install fiddler-adk

# Strands SDK
pip install fiddler-strands
```

> [!NOTE]
>
> Fiddler follows the Python Software Foundation's support schedule for Python versions. See the [Python version support policy](https://docs.fiddler.ai/reference/python-support-policy.md) for details.

**JavaScript / TypeScript SDKs:**

```bash theme={null}
# OTel JS SDK
npm install @fiddler-ai/otel

# LangGraph JS SDK
npm install @fiddler-ai/langgraph

# LangChain JS SDK
npm install @fiddler-ai/langchain
```

**REST API:** No installation required - use any HTTP client.

***

## 📚 Related Documentation

* [**Developer Guides**](https://docs.fiddler.ai/developers/quick-starts/get-started-in-less-than-10-minutes.md) - Quick starts and tutorials
* [**Integrations**](https://docs.fiddler.ai/integrations.md) - Connect with your ML stack
* [**Product Documentation**](https://docs.fiddler.ai/index.md) - Platform features and concepts

***

## 💡 Common Workflows

### ML Model & LLM App Monitoring Workflow

1. Install [Python Client SDK](https://docs.fiddler.ai/sdk-api/python-client/connection.md)
2. Define [model schema](https://docs.fiddler.ai/sdk-api/python-client/model-schema.md)
3. Upload [baseline dataset](https://docs.fiddler.ai/sdk-api/python-client/baseline.md)
4. [Publish production events](https://docs.fiddler.ai/sdk-api/rest-api/events)
5. Configure [alerts](https://docs.fiddler.ai/sdk-api/python-client/alert-rule.md)

### LLM Experiments Workflow

1. Install [Fiddler Evals SDK](https://docs.fiddler.ai/sdk-api/evals/evaluate.md)
2. Create a test dataset with the [Dataset API](https://docs.fiddler.ai/sdk-api/evals/dataset.md)
3. Define evaluators ([built-in](https://docs.fiddler.ai/sdk-api/evals/evaluator.md) or [custom](https://docs.fiddler.ai/sdk-api/evals/eval-fn.md))
4. Run [experiments](https://docs.fiddler.ai/sdk-api/evals/experiment.md) and analyze results

### Agent Monitoring Workflow

1. Install the SDK for your framework — [LangGraph](https://docs.fiddler.ai/sdk-api/langgraph/fiddler-client.md), [LangChain](https://docs.fiddler.ai/sdk-api/langchain/fiddler-lang-chain-instrumentor.md), [Google ADK](https://docs.fiddler.ai/sdk-api/adk/google-adk-instrumentor.md), [Strands](https://docs.fiddler.ai/sdk-api/strands/strands-agent-instrumentor.md), or a JavaScript SDK ([OTel JS](https://docs.fiddler.ai/sdk-api/otel-js/fiddler-client.md), [LangGraph JS](https://docs.fiddler.ai/sdk-api/langgraph-js/lang-graph-instrumentor.md), [LangChain JS](https://docs.fiddler.ai/sdk-api/langchain-js/lang-chain-instrumentor.md))
2. Instrument your agent application
3. Deploy to production
4. View traces and analytics in the Fiddler platform

***

## 📖 Additional Resources

* [**GitHub Examples**](https://github.com/fiddler-labs/fiddler-examples) - Sample code and notebooks
* [**SDK Changelog**](https://docs.fiddler.ai/changelog/python-sdk.md) - Latest SDK updates
* [**Support Portal**](mailto:support@fiddler.ai) - Enterprise support
