Skip to main content

Basic Usage

This guide walks you through running your first evaluation with the TurnWise SDK.

Step 1: Initialize the Client

Step 2: List Your Datasets

Step 3: Define a Metric

Create a metric to evaluate your conversations:

Step 4: Run Evaluation

Run the evaluation on a dataset:

Step 5: View Results

Access evaluation results:

Complete Example

Evaluation Levels

Choose the right level for your metric:

Conversation Level

Evaluate the entire conversation:

Message Level

Evaluate each assistant message:

Step Level

Evaluate individual reasoning steps:

Output Types

Progress (0-1 Score)

Most common for quality metrics:

Checkbox (Boolean)

For yes/no evaluations:

Text

For free-form analysis:

JSON

For structured multi-dimensional evaluation:

Template Variables

Use @VARIABLE syntax to inject conversation context:
See Template Variables for the complete list.

Next Steps

Advanced Usage

Learn advanced features

API Reference

Complete API documentation