Modules§
- chat_
completion_ builder - Tools for manipulating the type state of
ChatCompletionBuilder
.
Macros§
Structs§
- Chat
Completion - A standard chat completion request. The response will be a string in any shape and will not be parsed.
- Chat
Completion Builder - Use builder syntax to set the inputs and finish with
unstructured()
. - Chat
Completion Response - A response from a chat completion request.
- Chat
Completion Response Choice - A response choice from a chat completion request.
- Message
- A chat completion message. You can pre-populate the request with user and assistant messages (alongside the system message) to provide context for the completion.
- Message
Builder - Use builder syntax to set the inputs and finish with
build()
. - Structured
Chat Completion - A chat completion request who’s response conforms to a particular JSON schema.
- Structured
Chat Completion Response - A response from a structured chat completion request.
- Structured
Chat Completion Response Choice - Unified
Chat Completion Response Message - A chat completion response message. Don’t use this type directly, and instead use the
?
AKATry
operator to convert it into a result that can be used.
Enums§
- Finish
Reason - The reason the response was terminated.
- Model
- The model that can be used for either standard or structured chat completions.
- Role
- The role of the message used for the chat completion.