import { type ThreadCreateAndRunParams } from "https://deno.land/x/openai@v4.31.0/resources/beta/mod.ts";
const { Message } = ThreadCreateAndRunParams.Thread;
Properties
The role of the entity that is creating the message. Allowed values include:
user
: Indicates the message is sent by an actual user and should be used in most cases to represent user-generated messages.assistant
: Indicates the message is generated by the assistant. Use this value to insert messages from the assistant into the conversation.
A list of File IDs that
the message should use. There can be a maximum of 10 files attached to a
message. Useful for tools like retrieval
and code_interpreter
that can
access and use files.