Semantic Kernel JavaScript
    Preparing search index...

    Class ChatClientAbstract

    Abstract class representing a chat client that can interact with a chat service.

    Hierarchy (View Summary)

    Index

    Constructors

    Accessors

    Methods

    • Get a response from the chat client based on the provided chat messages.

      Parameters

      • chatMessages: string | ChatMessage[]

        A string or an array of ChatMessage objects representing the conversation history.

      • Optionaloptions: ChatOptions

        Optional parameters to customize the chat response, such as temperature, max tokens, etc.

      Returns Promise<ChatResponse>

    • Asks the chat client to provide a service of a specific type.

      Type Parameters

      • T

      Parameters

      • serviceType: T

        The type of service to retrieve, which is typically a class or interface.

      • OptionalserviceKey: string

        An optional key to identify a specific service instance.

      Returns undefined | object

    • Get a streaming response from the chat client based on the provided chat messages.

      Parameters

      • chatMessages: string | ChatMessage[]

        A string or an array of ChatMessage objects representing the conversation history.

      • Optionaloptions: ChatOptions

        Optional parameters to customize the chat response, such as temperature, max tokens, etc.

      Returns AsyncGenerator<ChatResponseUpdate>