import { type ChatFormat } from "https://deno.land/x/openai_deno@v0.9.8/src/types/chat.ts";
Properties
The role of the messages author. One of system
, user
, assistant
, or function
.
The contents of the message. content
is required for all messages except assistant messages with function calls.
The name of the author of this message. name
is required if role is function
, and it should be the name of the function whose response is in the content
. May contain a-z, A-Z, 0-9, and underscores, with a maximum length of 64 characters.
optional
functionCall: ChatFunctionCallThe name and arguments of a function that should be called, as generated by the model.