Protected
constructorGet 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.
Asks 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.
Get 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.
Provides an optional base class for an ChatClient that passes through calls to another instance.