Abstract
Abstract
metadataAbstract
getGet a response from the chat client based on the provided chat messages.
A string or an array of ChatMessage objects representing the conversation history.
Optional
options: ChatOptionsOptional parameters to customize the chat response, such as temperature, max tokens, etc.
Abstract
getAsks the chat client to provide a service of a specific type.
The type of service to retrieve, which is typically a class or interface.
Optional
serviceKey: stringAn optional key to identify a specific service instance.
Abstract
getGet a streaming response from the chat client based on the provided chat messages.
A string or an array of ChatMessage objects representing the conversation history.
Optional
options: ChatOptionsOptional parameters to customize the chat response, such as temperature, max tokens, etc.
Abstract class representing a chat client that can interact with a chat service.