prompt_tokens
integer

Number of tokens in the prompt. Default is 0.

completion_tokens
integer

Number of tokens in the completion. Default is 0.

cost
float

Cost of the operation. Default is 0.

prompt_messages
array

Array of prompt messages. Default is an empty list.

completion_message
dict

Completion message in JSON format. Default is an empty dictionary.

latency
float

Latency of the operation in seconds. Default is 0.

scores
dict

Scores in JSON format. Default is an empty dictionary.

user
foreign key

Foreign key to the User model.

organization_key
foreign key

Foreign key to the OrganizationKey model. Default is the default organization key.

model
string

Model used for the operation. Default is an empty string.

timestamp
datetime

Timestamp of the operation. Default is the current time.

failed
boolean

Whether the operation failed. Default is false.

error_message
text

Error message if the operation failed. Default is an empty string.

category
string

Category of the operation. Default is an empty string.

time_to_first_token
float

Time to first token in seconds. Default is 0.

routing_time
float

Routing time in seconds. Default is 0.

sentiment_analysis
dict

Sentiment analysis in JSON format. Default is an empty dictionary.

metadata
dict

Metadata in JSON format. Default is an empty dictionary.

stream
boolean

Whether the operation was streamed. Default is false.

error_code
integer

Error code if the operation failed. Default is 0.

customer_identifier
string

Customer identifier. Default is an empty string.

cached_response
integer

Whether the response was cached. Default is 0.