alexa
menu

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download

    Show / Hide Table of Contents

    Interface IChatInferenceService

    Represent the chat inference service.

    Namespace: Syncfusion.Maui.SmartComponents
    Assembly: Syncfusion.Maui.SmartComponents.dll
    Syntax
    public interface IChatInferenceService

    Methods

    GenerateResponseAsync(List<ChatMessage>)

    Asynchronously generates a chat response based on the provided parameters.

    Declaration
    Task<string> GenerateResponseAsync(List<ChatMessage> chatMessages)
    Parameters
    Type Name Description
    System.Collections.Generic.List<Microsoft.Extensions.AI.ChatMessage> chatMessages

    The parameters that define the chat messages.

    Returns
    Type Description
    System.Threading.Tasks.Task<System.String>

    A task that represents the asynchronous operation, containing the AI-generated response as a string.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved