mirror of
https://github.com/LukeHagar/log10py.git
synced 2025-12-07 20:47:45 +00:00
12 lines
6.9 KiB
Markdown
12 lines
6.9 KiB
Markdown
# ChatCompletionRequestAssistantMessage
|
|
|
|
|
|
## Fields
|
|
|
|
| Field | Type | Required | Description |
|
|
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
| `role` | [components.ChatCompletionRequestAssistantMessageRole](../../models/components/chatcompletionrequestassistantmessagerole.md) | :heavy_check_mark: | The role of the messages author, in this case `assistant`. |
|
|
| `content` | *Optional[str]* | :heavy_minus_sign: | The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.<br/> |
|
|
| `name` | *Optional[str]* | :heavy_minus_sign: | An optional name for the participant. Provides the model information to differentiate between participants of the same role. |
|
|
| `tool_calls` | List[[components.ChatCompletionMessageToolCall](../../models/components/chatcompletionmessagetoolcall.md)] | :heavy_minus_sign: | The tool calls generated by the model, such as function calls. |
|
|
| ~~`function_call`~~ | [Optional[components.FunctionCall]](../../models/components/functioncall.md) | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.<br/><br/>Deprecated and replaced by `tool_calls`. The name and arguments of a function that should be called, as generated by the model. | |