WRITER Integration

Updated on Aug 14, 2026

Use this integration when your app is implemented in Python.

Setup

  1. Install SDK
bash
pip install progress-observability
  1. Instrument your app
python
Observability.instrument(
    app_name=os.getenv("OBSERVABILITY_APP_NAME"),
    api_key=os.getenv("OBSERVABILITY_API_KEY")
)
  1. Complete example
python
import os
from dotenv import load_dotenv

from writerai import Writer
from progress.observability import Observability

load_dotenv()

Observability.instrument(
    app_name=os.getenv("OBSERVABILITY_APP_NAME"),
    api_key=os.getenv("OBSERVABILITY_API_KEY"),
)

client = Writer(api_key=os.getenv("WRITER_API_KEY"))
model = os.getenv("WRITER_MODEL", "palmyra-x5")

response = client.chat.chat(
    model=model,
    messages=[
        {"role": "system", "content": "You are a helpful assistant."},
        {"role": "user", "content": "What is the capital of France?"},
    ],
    max_tokens=64,
    temperature=0.0,
)


Observability.shutdown()

To get a richer trace tree when building agents on top of this provider, use the @agent, @tool, @workflow, or @task decorators. See the Python SDK for details.

In this article
Setup
Not finding the help you need?
Contact Support