ModelMessage Class
Represents a response from an AI model.
Can contain either text content, function calls to be executed, or both. When function_calls is present, the content may be None.
Constructor
ModelMessage(content: str | None, function_calls: list[microsoft.teams.ai.function.FunctionCall] | None, id: str | None = None, role: Literal['model'] = 'model')
Parameters
| Name | Description |
|---|---|
|
content
Required
|
|
|
function_calls
Required
|
|
|
id
|
Default value: None
|
|
role
|
Default value: model
|
Attributes
content
content: str | None
function_calls
function_calls: list[microsoft.teams.ai.function.FunctionCall] | None
id
id: str | None = None
role
role: Literal['model'] = 'model'