Trace2

Quick Start

Build your first optimizable AI agent with Trace2

Quick Start

Learn the basics of Trace2 by building a simple optimizable function.

Your First Optimization

Step 1: Import Trace2

from opto.trace import node, bundle
from opto.optimizers import OptoPrime
import os

# Set your API key
os.environ['OPENAI_API_KEY'] = 'your-api-key-here'

Step 2: Define a Trainable Function

[Add example here]

Step 3: Set Up Optimizer

[Add example here]

Step 4: Run Optimization

[Add example here]

Understanding What Happened

Next Steps