Python
The library the playground is built on.
pip install wassitai
from wassitai import Client
from pydantic import BaseModel
class Invoice(BaseModel):
number: str
total: float
client = Client.from_provider("groq", api_key="…", model="…")
invoice = client.generate("Extract the invoice: …", schema=Invoice)
# Parse text you already have — no provider call:
from wassitai import parse
invoice = parse('{"number": "A-1", "total": 9.5}', Invoice)