Documentation Index
Fetch the complete documentation index at: https://docs.keywordsai.co/llms.txt
Use this file to discover all available pages before exploring further.
Initialize client
import os
from keywordsai_tracing import KeywordsAITelemetry
os.environ["KEYWORDSAI_API_KEY"] = "your-api-key"
os.environ["KEYWORDSAI_BASE_URL"] = "https://api.keywordsai.co/api"
k_tl = KeywordsAITelemetry()
Environment variables
KEYWORDSAI_API_KEY: required API key
KEYWORDSAI_BASE_URL: service base URL; default https://api.keywordsai.co/api
Usage with decorators
from keywordsai_tracing.decorators import workflow, task
@workflow(name="pipeline")
def pipeline():
@task(name="step")
def step():
return "ok"
return step()
print(pipeline())