Metadata

The metadata object is an arbitrary set of string key-value pairs.

You can use this metadata object to attach custom data to a conversation. These fields can then as filters or slice dimensions within Context.ai. There is a limit of 20 metadata keys per conversation and 40 character limit for each metadata key and value.

Example

{
   "model": "gpt-4-32k",
   "user_id": "4729045",
   "session_id": "3876-6592",
}
Field NameTypeDescriptionRequired

model

String

Model and context window size (if relevant). See Cost Estimation.

user_id

String

Unique user identifier. See User Engagement Monitoring.

*

String

Arbitrary key-value pairs of metadata attached to a conversation.

Last updated