Interface: Msg
Generic/default OpenAI message without any narrowing applied
Properties
Property | Type | Description | Source |
---|---|---|---|
content | null | string | The contents of the message. content is required for all messages, and may be null for assistant messages with function calls. | src/prompt/types.ts:49 (opens in a new tab) |
function_call ? | FunctionCall | The name and arguments of a function that should be called, as generated by the model. | src/prompt/types.ts:53 (opens in a new tab) |
name ? | string | The name of the author of this message. name is required if role isfunction , and it should be the name of the function whose response is in thecontent . May contain a-z, A-Z, 0-9, and underscores, with a maximum length of64 characters. | src/prompt/types.ts:60 (opens in a new tab) |
role | Role | The role of the messages author. One of system , user , assistant , or function . | src/prompt/types.ts:51 (opens in a new tab) |