You can pass Keywords AI params to your traces to get more insights into your LLM workflows.
customer_identifier
customer_name
customer_email
metadata
custom_identifier
thread_identifier
@workflow(name="my_workflow") def my_workflow(): # Add Keywords AI params to the current trace with keywordsai_span_attributes( keywordsai_params={ "customer_params": { "customer_identifier": "123", }, "metadata": {"some_key": "some_value"}, } ): # Your LLM calls or other operations here client = OpenAI() response = client.chat.completions.create( model="gpt-4o", messages=[{"role": "user", "content": "Hello, world!"}], ) return response
Was this page helpful?