Message interface
A message object sent to or received from an LLM.
Properties
content | Text of the message. |
context | The context used for the message. |
function_call | Optional. A named function to call. |
name | Optional. Name of the function that was called. |
role | The messages role. Typically 'system', 'user', 'assistant', 'function'. |
Property Details
content
Text of the message.
content: undefined | TContent
Property Value
undefined | TContent
context
function_call
name
Optional. Name of the function that was called.
name?: string
Property Value
string
role
The messages role. Typically 'system', 'user', 'assistant', 'function'.
role: string
Property Value
string
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for