What is traces?
Traces are a chained collection of workflows and tasks. You can use tree views and waterfalls to better track dependencies and latency.
Integrate with your existing AI framework
Keywords AI integrates seamlessly with popular AI frameworks to give you complete observability into your agent workflows.Supported frameworks
Keywords AI native tracing
If you don’t want to choose any AI framework right now, you can also use Keywords AI native tracing for your AI agents without any additional setup. You just need to add thekeywordsai-tracing
package to your project and annotate your workflows.
1
Install the SDK
Install the package using your preferred package manager:
2
Set up Environment Variables
Get your API key from the API Keys page in Settings, then configure it in your environment:
.env
3
Annotate your workflows
Use the
@workflow
and @task
decorators to instrument your code:Python
4
A full example with LLM calls
In this example, you will see how to implement a workflow that includes LLM calls. We use OpenAI SDK as an example.
main.py