# Examples

Focused examples showing individual Caliper SDK features.

## Prerequisites

- Python 3.12+
- SDK installed: `make install-dev` (from the repo root — installs all extras including S3)
- Environment variables loaded — copy `.env.example` to `.env`, fill in your values, then:
  ```bash
  set -a && source .env && set +a
  ```

## Examples

| File | Description |
|------|-------------|
| `development.py` | Dev target walkthrough (Anthropic) — basic calls, streaming, feature metadata, multi-turn linking, annotations, and record inspection |
| `openai_development.py` | Dev target walkthrough (OpenAI) — same features as above using the OpenAI SDK |
| `s3_export.py` | S3 export target — configure credentials, make calls, inspect the S3 key structure |
| `tool_use.py` | Tool capture — `capture_tools=True`, define tools, inspect captured tool names and invocations |

## Running

```bash
uv run python examples/development.py
uv run python examples/openai_development.py
uv run python examples/s3_export.py
uv run python examples/tool_use.py
```
