Skip to main content

Start with the pre-built example

We have built a pre-built example for you to get started quickly. You can find the example in Github.

Quick Start

1

Install dependencies

2

Set up environment variables

Create a .env file in your project root:
.env
3

Initialize KeywordsAI tracing

Python
4

Set up your Instructor client

Python
5

Define your Pydantic models

Python
6

Add @task decorator to your functions

Python
7

Run your workflow

Python

Complete Example

Here’s a complete example that demonstrates async Instructor with KeywordsAI tracing:
Python