Conversation

A conversation is a top-level object that represents a series of chat and tool messages related to an LLM interaction.

Example:

{
  "messages": [
    {
      "role": "system",
      "message": "You are a LLM providing information about a local football club.",
      "event_timestamp": "2020-02-20T20:20:23Z"
    },
    {
      "role": "user",
      "message": "What time does the team arrive?",
      "event_timestamp": "2020-02-20T20:21:34Z"
    },
    {
      "type": "tool",
      "name": "football_api_tool",
      "thought": "The user asked about the team time arrival, I should use football_api_tool",
      "input": {"event": "team-arrive", "resource": "time"},
      "observation": "Error: could not find event",
      "event_timestamp": "2020-02-20T20:21:34Z"
    },
    {
      "role":"assistant",
      "message": "I'm not sure what time the team arrives.",
      "event_timestamp": "2020-02-20T23:20:40Z",
      "rating": -1
    }
  ],
  "metadata": {
    "model": "gpt-3.5-turbo-16k",
    "user_id": "2947451"
  },
  "feedback": "Agent was not helpful and did not answer my queries."
}
Field NameTypeDescriptionRequired

messages

Array

Array of Chat Message or Tool Message objects.

metadata

Object

Metadata object

feedback

String

Free text feedback from user

Last updated