Use decorators to instrument your code and automatically trace your LLM workflows with minimal code changes.
@workflow
and @task
decorators to your functions and classes, you can automatically capture detailed execution traces that show the complete hierarchy of your LLM operations.
Integration | Support | Notes |
---|---|---|
Keywords AI Native | ✅ | Built-in tracing with Keywords AI SDK |
OpenAI SDK | ✅ | Python only |
Vercel AI SDK | ❌ | Not currently supported |
@workflow
and @task
decorators to instrument your code:joke_creation
): Generates an original joke about OpenTelemetry using GPT-3.5-turbopirate_joke_translation
): Transforms the joke into pirate languagesignature_generation
): Adds a creative signature to the final pirate joke@workflow
decorator wraps the entire process, while each @task
decorator instruments individual LLM operations.joke_workflow
, vercel_ai_workflow
, openai_workflow
)joke_creation
, generate_text
, researcher_agent
)