A message input to the model with a role indicating instruction following hierarchy. Instructions given with the developer or system role take precedence over instructions given with the user role. Messages with the assistant role are presumed to have been generated by the model in previous interactions.

interface EvalItem {
    content: string | ResponseInputText | OpenAIClient.Evals.Runs.RunCreateResponse.Completions.Template.EvalItem.OutputText;
    role:
        | "system"
        | "developer"
        | "assistant"
        | "user";
    type?: "message";
}

Properties

Properties

Text inputs to the model - can contain template strings.

role:
    | "system"
    | "developer"
    | "assistant"
    | "user"

The role of the message input. One of user, assistant, system, or developer.

type?: "message"

The type of the message input. Always message.