Complete guide to passing Keywords AI parameters using the 3-layer approach: required fields, telemetry, and metadata
Parameter | Type | Description | Required |
---|---|---|---|
model | string | The LLM model used | ✅ |
prompt_messages | array | Input messages to the model | ✅ |
completion_message | object | Model’s response message | ✅ |
Parameter | Type | Description | Unit |
---|---|---|---|
prompt_tokens | integer | Number of tokens in prompt | tokens |
completion_tokens | integer | Number of tokens in completion | tokens |
cost | float | Cost of the request | USD |
latency | float | Total request latency | seconds |
ttft | float | Time to first token | seconds |
generation_time | float | Time to generate response | seconds |
Parameter | Type | Description | Purpose |
---|---|---|---|
metadata | object | General metadata | Custom properties |
customer_params | object | Customer information | User tracking |
group_identifier | string | Group/organization ID | Group analytics |
thread_identifier | string | Conversation thread ID | Thread tracking |
custom_identifier | string | Custom tracking ID | Custom analytics |